結果

問題 No.353 ヘイトプラス
ユーザー feeling_burstfeeling_burst
提出日時 2016-04-14 15:41:18
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 131 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 20,352 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-15 01:25:06
合計ジャッジ時間 2,039 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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);
      |   ^~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main(void) {
  long long int a,b;
  scanf("%u", &a);
  scanf("%u", &b);
  printf("%u\n",a+b);
  return 0;
}
0