結果
| 問題 |
No.353 ヘイトプラス
|
| コンテスト | |
| ユーザー |
feeling_burst
|
| 提出日時 | 2016-04-14 15:41:18 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 131 bytes |
| コンパイル時間 | 214 ms |
| コンパイル使用メモリ | 20,224 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-04 08:41:07 |
| 合計ジャッジ時間 | 1,433 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 7 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:11: warning: format ‘%u’ expects argument of type ‘unsigned int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
4 | scanf("%u", &a);
| ~^ ~~
| | |
| | long long int *
| unsigned int *
| %llu
main.c:5:11: warning: format ‘%u’ expects argument of type ‘unsigned int *’, but argument 2 has type ‘long long int *’ [-Wformat=]
5 | scanf("%u", &b);
| ~^ ~~
| | |
| | long long int *
| unsigned int *
| %llu
main.c:6:12: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long long int’ [-Wformat=]
6 | printf("%u\n",a+b);
| ~^ ~~~
| | |
| | long long int
| unsigned int
| %llu
main.c:4:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%u", &a);
| ^~~~~~~~~~~~~~~
main.c:5:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%u", &b);
| ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(void) {
long long int a,b;
scanf("%u", &a);
scanf("%u", &b);
printf("%u\n",a+b);
return 0;
}
feeling_burst