結果
| 問題 |
No.9001 標準入出力の練習問題(テスト用)
|
| ユーザー |
4A9GN
|
| 提出日時 | 2016-07-16 21:51:09 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 230 bytes |
| コンパイル時間 | 101 ms |
| コンパイル使用メモリ | 20,224 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-15 13:58:41 |
| 合計ジャッジ時間 | 473 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 2 |
コンパイルメッセージ
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);
| ^~~~~~~~~~~~~~
ソースコード
#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;
}
4A9GN