結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー | 👑 testestest |
提出日時 | 2016-12-04 07:13:36 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 103 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 19,840 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-05-05 19:15:10 |
合計ジャッジ時間 | 740 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
5,248 KB |
testcase_01 | AC | 2 ms
5,376 KB |
testcase_02 | AC | 3 ms
5,376 KB |
testcase_03 | WA | - |
testcase_04 | AC | 2 ms
5,376 KB |
testcase_05 | AC | 2 ms
5,376 KB |
testcase_06 | AC | 3 ms
5,376 KB |
testcase_07 | AC | 2 ms
5,376 KB |
testcase_08 | AC | 3 ms
5,376 KB |
testcase_09 | AC | 2 ms
5,376 KB |
testcase_10 | AC | 3 ms
5,376 KB |
testcase_11 | AC | 2 ms
5,376 KB |
testcase_12 | AC | 2 ms
5,376 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 3 ms
5,376 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | n;s;main(f,t){for(;n?sprintf(&t,"%d",--n),f+=!strcmp(&s,&t):(n=gets(&s)?12346:!puts(f-3?"NG":"OK")););} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int] main.c:1:3: warning: data definition has no type or storage class 1 | n;s;main(f,t){for(;n?sprintf(&t,"%d",--n),f+=!strcmp(&s,&t):(n=gets(&s)?12346:!puts(f-3?"NG":"OK")););} | ^ main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] main.c:1:5: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | n;s;main(f,t){for(;n?sprintf(&t,"%d",--n),f+=!strcmp(&s,&t):(n=gets(&s)?12346:!puts(f-3?"NG":"OK")););} | ^~~~ main.c: In function ‘main’: main.c:1:5: warning: type of ‘f’ defaults to ‘int’ [-Wimplicit-int] main.c:1:5: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int] main.c:1:22: warning: implicit declaration of function ‘sprintf’ [-Wimplicit-function-declaration] 1 | n;s;main(f,t){for(;n?sprintf(&t,"%d",--n),f+=!strcmp(&s,&t):(n=gets(&s)?12346:!puts(f-3?"NG":"OK")););} | ^~~~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘sprintf’ +++ |+#include <stdio.h> 1 | n;s;main(f,t){for(;n?sprintf(&t,"%d",--n),f+=!strcmp(&s,&t):(n=gets(&s)?12346:!puts(f-3?"NG":"OK")););} main.c:1:22: warning: incompatible implicit declaration of built-in function ‘sprintf’ [-Wbuiltin-declaration-mismatch] 1 | n;s;main(f,t){for(;n?sprintf(&t,"%d",--n),f+=!strcmp(&s,&t):(n=gets(&s)?12346:!puts(f-3?"NG":"OK")););} | ^~~~~~~ main.c:1:22: note: include ‘<stdio.h>’ or provide a declaration of ‘sprintf’ main.c:1:30: warning: passing argument 1 of ‘sprintf’ from incompatible pointer type [-Wincompatible-pointer-types] 1 | n;s;main(f,t){for(;n?sprintf(&t,"%d",--n),f+=!strcmp(&s,&t):(n=gets(&s)?12346:!puts(f-3?"NG":"
ソースコード
n;s;main(f,t){for(;n?sprintf(&t,"%d",--n),f+=!strcmp(&s,&t):(n=gets(&s)?12346:!puts(f-3?"NG":"OK")););}