結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー | testestest |
提出日時 | 2016-12-04 07:13:36 |
言語 | C90 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 103 bytes |
コンパイル時間 | 239 ms |
コンパイル使用メモリ | 23,008 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-08-18 14:04:11 |
合計ジャッジ時間 | 1,192 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
4,376 KB |
testcase_01 | AC | 3 ms
4,376 KB |
testcase_02 | AC | 3 ms
4,376 KB |
testcase_03 | AC | 3 ms
4,376 KB |
testcase_04 | AC | 3 ms
4,376 KB |
testcase_05 | AC | 3 ms
4,380 KB |
testcase_06 | AC | 3 ms
4,380 KB |
testcase_07 | AC | 3 ms
4,376 KB |
testcase_08 | AC | 3 ms
4,380 KB |
testcase_09 | AC | 3 ms
4,384 KB |
testcase_10 | AC | 2 ms
4,380 KB |
testcase_11 | AC | 3 ms
4,376 KB |
testcase_12 | AC | 3 ms
4,380 KB |
testcase_13 | AC | 3 ms
4,376 KB |
testcase_14 | AC | 3 ms
4,376 KB |
testcase_15 | AC | 2 ms
4,376 KB |
testcase_16 | AC | 3 ms
4,376 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 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 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] 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] 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’ main.c:1:22: note: include ‘<stdio.h>’ or provide a declaration of ‘sprintf’ +#include <stdio.h> 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:30: warning: passing argument 1 of ‘sprintf’ from incompatible pointer type [-Wincompatible-pointer-types] 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:30: note: expected ‘char *’ but argument is of type ‘int *’ main.c:1:47: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration] n;s;main(f,t){for(;n?sprintf(&t,"%d",--n),f+=!strcmp(&s,&t):(n=gets(&s)?12346:!puts(f-3?"N
ソースコード
n;s;main(f,t){for(;n?sprintf(&t,"%d",--n),f+=!strcmp(&s,&t):(n=gets(&s)?12346:!puts(f-3?"NG":"OK")););}