結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー くれちーくれちー
提出日時 2016-09-27 19:36:52
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 90 bytes
コンパイル時間 114 ms
コンパイル使用メモリ 19,200 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-01 05:46:01
合計ジャッジ時間 1,031 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

i;main(m,t,c){for(;++i<16;m=m<t?t:m)c=getchar(),c=='o'?t++:c!=10?t=0:t;i=!printf("%d",m);}
0