結果

問題 No.436 ccw
ユーザー testestesttestestest
提出日時 2016-10-28 22:22:34
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 53 bytes
コンパイル時間 412 ms
コンパイル使用メモリ 22,492 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-15 20:53:52
合計ジャッジ時間 1,393 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 WA -
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 0 ms
4,376 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 1 ms
4,376 KB
testcase_11 WA -
testcase_12 AC 1 ms
4,376 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 1 ms
4,376 KB
testcase_18 AC 0 ms
4,376 KB
testcase_19 AC 0 ms
4,376 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 1 ms
4,380 KB
testcase_25 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
 i;main(){for(;getchar()==99;i--);i=!printf("%d",~i);}
 ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
main.c:1:3: warning: return type defaults to ‘int’ [-Wimplicit-int]
 i;main(){for(;getchar()==99;i--);i=!printf("%d",~i);}
   ^~~~
main.c: In function ‘main’:
main.c:1:15: warning: implicit declaration of function ‘getchar’ [-Wimplicit-function-declaration]
 i;main(){for(;getchar()==99;i--);i=!printf("%d",~i);}
               ^~~~~~~
main.c:1:15: note: ‘getchar’ is defined in header ‘<stdio.h>’; did you forget to ‘#include <stdio.h>’?
+#include <stdio.h>
 i;main(){for(;getchar()==99;i--);i=!printf("%d",~i);}
               ^~~~~~~
main.c:1:37: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 i;main(){for(;getchar()==99;i--);i=!printf("%d",~i);}
                                     ^~~~~~
main.c:1:37: warning: incompatible implicit declaration of built-in function ‘printf’
main.c:1:37: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’

ソースコード

diff #

i;main(){for(;getchar()==99;i--);i=!printf("%d",~i);}
0