結果

問題 No.305 鍵(2)
コンテスト
ユーザー testestest
提出日時 2017-08-16 23:04:13
言語 C(gnu17)
(gcc 15.2.0)
コンパイル:
gcc-15 -O2 -std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
RE  
実行時間 -
コード長 112 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 50 ms
コンパイル使用メモリ 35,712 KB
実行使用メモリ 5,888 KB
平均クエリ数 1.00
最終ジャッジ日時 2026-07-21 15:54:32
合計ジャッジ時間 3,535 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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'
  +++

ソースコード

diff #
raw source code

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));}
0