結果

問題 No.516 赤と青の風船
ユーザー Double_oxygeNDouble_oxygeN
提出日時 2017-05-28 22:12:46
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 71 bytes
コンパイル時間 561 ms
コンパイル使用メモリ 27,740 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-21 14:16:05
合計ジャッジ時間 888 ms
ジャッジサーバーID
(参考情報)
judge15 / judge9
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 1 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:10: warning: return type defaults to 'int' [-Wimplicit-int]
    1 | char c[];main(i){for(;~scanf("%s",&c);)i+=*c;puts(i>216?"RED":"BLUE");}
      |          ^~~~
main.c: In function 'main':
main.c:1:10: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:24: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | char c[];main(i){for(;~scanf("%s",&c);)i+=*c;puts(i>216?"RED":"BLUE");}
      |                        ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | char c[];main(i){for(;~scanf("%s",&c);)i+=*c;puts(i>216?"RED":"BLUE");}
main.c:1:24: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | char c[];main(i){for(;~scanf("%s",&c);)i+=*c;puts(i>216?"RED":"BLUE");}
      |                        ^~~~~
main.c:1:24: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:46: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | char c[];main(i){for(;~scanf("%s",&c);)i+=*c;puts(i>216?"RED":"BLUE");}
      |                                              ^~~~
main.c:1:46: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c: At top level:
main.c:1:6: warning: array 'c' assumed to have one element
    1 | char c[];main(i){for(;~scanf("%s",&c);)i+=*c;puts(i>216?"RED":"BLUE");}
      |      ^

ソースコード

diff #

char c[];main(i){for(;~scanf("%s",&c);)i+=*c;puts(i>216?"RED":"BLUE");}
0