結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2017-08-16 23:04:13 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 112 bytes |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 28,288 KB |
| 実行使用メモリ | 25,604 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2024-07-16 14:03:43 |
| 合計ジャッジ時間 | 6,573 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 13 |
コンパイルメッセージ
main.c:1:30: warning: data definition has no type or storage class
1 | char s[]="0000000000",*p=s-2;k;main(n){for(;k-n?k>n?n=k:--*p,p++,k<12:++*p;k=atoi(gets(&k))+2)fflush(!puts(s));}
| ^
main.c:1:30: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
main.c:1:32: warning: return type defaults to 'int' [-Wimplicit-int]
1 | char s[]="0000000000",*p=s-2;k;main(n){for(;k-n?k>n?n=k:--*p,p++,k<12:++*p;k=atoi(gets(&k))+2)fflush(!puts(s));}
| ^~~~
main.c: In function 'main':
main.c:1:32: warning: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:78: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
1 | char s[]="0000000000",*p=s-2;k;main(n){for(;k-n?k>n?n=k:--*p,p++,k<12:++*p;k=atoi(gets(&k))+2)fflush(!puts(s));}
| ^~~~
main.c:1:83: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
1 | char s[]="0000000000",*p=s-2;k;main(n){for(;k-n?k>n?n=k:--*p,p++,k<12:++*p;k=atoi(gets(&k))+2)fflush(!puts(s));}
| ^~~~
main.c:1:95: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
1 | char s[]="0000000000",*p=s-2;k;main(n){for(;k-n?k>n?n=k:--*p,p++,k<12:++*p;k=atoi(gets(&k))+2)fflush(!puts(s));}
| ^~~~~~
main.c:1:103: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
1 | char s[]="0000000000",*p=s-2;k;main(n){for(;k-n?k>n?n=k:--*p,p++,k<12:++*p;k=atoi(gets(&k))+2)fflush(!puts(s));}
| ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
+++
ソースコード
char s[]="0000000000",*p=s-2;k;main(n){for(;k-n?k>n?n=k:--*p,p++,k<12:++*p;k=atoi(gets(&k))+2)fflush(!puts(s));}
testestest