結果

問題 No.104 国道
ユーザー hogeover30hogeover30
提出日時 2015-04-04 03:43:24
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 62 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 22,552 KB
実行使用メモリ 5,316 KB
最終ジャッジ日時 2023-09-17 04:03:06
合計ジャッジ時間 887 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
 a;main(c){for(;a=~getchar();c=2*c|~a>76);a=!printf("%d\n",c);}
 ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int]
 a;main(c){for(;a=~getchar();c=2*c|~a>76);a=!printf("%d\n",c);}
   ^~~~
main.c: In function ‘main’:
main.c:1:3: warning: type of ‘c’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:19: warning: implicit declaration of function ‘getchar’ [-Wimplicit-function-declaration]
 a;main(c){for(;a=~getchar();c=2*c|~a>76);a=!printf("%d\n",c);}
                   ^~~~~~~
main.c:1:19: note: ‘getchar’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
+#include <stdio.h>
 a;main(c){for(;a=~getchar();c=2*c|~a>76);a=!printf("%d\n",c);}
                   ^~~~~~~
main.c:1:45: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 a;main(c){for(;a=~getchar();c=2*c|~a>76);a=!printf("%d\n",c);}
                                             ^~~~~~
main.c:1:45: warning: incompatible implicit declaration of built-in function ‘printf’
main.c:1:45: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’

ソースコード

diff #

a;main(c){for(;a=~getchar();c=2*c|~a>76);a=!printf("%d\n",c);}
0