結果

問題 No.305 鍵(2)
コンテスト
ユーザー kotatsugame
提出日時 2026-04-02 00:56:20
言語 C11(gcc12 gnu拡張)
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=gnu11 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
RE  
実行時間 -
コード長 150 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 816 ms
コンパイル使用メモリ 28,360 KB
実行使用メモリ 57,904 KB
平均クエリ数 1.00
最終ジャッジ日時 2026-04-02 00:56:27
合計ジャッジ時間 6,215 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 13
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
    1 | a[10],s[9];*p=a;r;o(k){r=k>9?fflush(!puts("")),atoi(gets(s)):o(k,putchar(a[k++]+48));}main(c){for(c=o(0);c<10;p++)for(;*p>8?*p=0:o(!++*p)>c?!++c:1;);}
      | ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
    1 | a[10],s[9];*p=a;r;o(k){r=k>9?fflush(!puts("")),atoi(gets(s)):o(k,putchar(a[k++]+48));}main(c){for(c=o(0);c<10;p++)for(;*p>8?*p=0:o(!++*p)>c?!++c:1;);}
      |       ^
main.c:1:12: warning: data definition has no type or storage class
    1 | a[10],s[9];*p=a;r;o(k){r=k>9?fflush(!puts("")),atoi(gets(s)):o(k,putchar(a[k++]+48));}main(c){for(c=o(0);c<10;p++)for(;*p>8?*p=0:o(!++*p)>c?!++c:1;);}
      |            ^
main.c:1:13: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int]
    1 | a[10],s[9];*p=a;r;o(k){r=k>9?fflush(!puts("")),atoi(gets(s)):o(k,putchar(a[k++]+48));}main(c){for(c=o(0);c<10;p++)for(;*p>8?*p=0:o(!++*p)>c?!++c:1;);}
      |             ^
main.c:1:17: warning: data definition has no type or storage class
    1 | a[10],s[9];*p=a;r;o(k){r=k>9?fflush(!puts("")),atoi(gets(s)):o(k,putchar(a[k++]+48));}main(c){for(c=o(0);c<10;p++)for(;*p>8?*p=0:o(!++*p)>c?!++c:1;);}
      |                 ^
main.c:1:17: warning: type defaults to ‘int’ in declaration of ‘r’ [-Wimplicit-int]
main.c:1:19: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | a[10],s[9];*p=a;r;o(k){r=k>9?fflush(!puts("")),atoi(gets(s)):o(k,putchar(a[k++]+48));}main(c){for(c=o(0);c<10;p++)for(;*p>8?*p=0:o(!++*p)>c?!++c:1;);}
      |                   ^
main.c: In function ‘o’:
main.c:1:19: warning: type of ‘k’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:30: warning: implicit declaration of function ‘fflush’ [-Wimplicit-function-declaration]
    1 | a[10],s[9];*p=a;r;o(k){r=k>9?fflush(!puts("")),atoi(gets(s)):o(k,put

ソースコード

diff #
raw source code

a[10],s[9];*p=a;r;o(k){r=k>9?fflush(!puts("")),atoi(gets(s)):o(k,putchar(a[k++]+48));}main(c){for(c=o(0);c<10;p++)for(;*p>8?*p=0:o(!++*p)>c?!++c:1;);}
0