結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
👑 testestest
|
| 提出日時 | 2016-12-04 07:13:36 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 103 bytes |
| コンパイル時間 | 878 ms |
| コンパイル使用メモリ | 19,200 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 19:38:34 |
| 合計ジャッジ時間 | 960 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 10 WA * 3 |
コンパイルメッセージ
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")););}
testestest