結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー 4A9GN4A9GN
提出日時 2016-07-16 21:51:09
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 230 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 20,352 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-23 13:55:10
合計ジャッジ時間 395 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:8:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |     scanf("%d %d", &A, &B);
      |     ^~~~~~~~~~~~~~~~~~~~~~
main.c:9:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |     scanf("%s", s);
      |     ^~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[]) {
    int A, B;
    char s[10];
    
    scanf("%d %d", &A, &B);
    scanf("%s", s);
    
    printf("%d\n", A + B);
    printf("%s\n", s);

    return 0;
}
0