結果
| 問題 |
No.305 鍵(2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-16 00:42:38 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 155 bytes |
| コンパイル時間 | 263 ms |
| コンパイル使用メモリ | 28,032 KB |
| 実行使用メモリ | 25,476 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2024-07-17 01:24:43 |
| 合計ジャッジ時間 | 9,012 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 13 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | a[10],s[9];*p=a;r;
| ^
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;
| ^
main.c:1:12: warning: data definition has no type or storage class
1 | a[10],s[9];*p=a;r;
| ^
main.c:1:13: warning: type defaults to 'int' in declaration of 'p' [-Wimplicit-int]
1 | a[10],s[9];*p=a;r;
| ^
main.c:1:17: warning: data definition has no type or storage class
1 | a[10],s[9];*p=a;r;
| ^
main.c:1:17: warning: type defaults to 'int' in declaration of 'r' [-Wimplicit-int]
main.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int]
2 | o(k){r=k>9?fflush(!puts("")),atoi(gets(s)):o(k,putchar(a[k++]+48));}
| ^
main.c: In function 'o':
main.c:2:1: warning: type of 'k' defaults to 'int' [-Wimplicit-int]
main.c:2:12: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
2 | o(k){r=k>9?fflush(!puts("")),atoi(gets(s)):o(k,putchar(a[k++]+48));}
| ^~~~~~
main.c:2:20: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
2 | o(k){r=k>9?fflush(!puts("")),atoi(gets(s)):o(k,putchar(a[k++]+48));}
| ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
+++ |+#include <stdio.h>
1 | a[10],s[9];*p=a;r;
main.c:2:30: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
2 | o(k){r=k>9?fflush(!puts("")),atoi(gets(s)):o(k,putchar(a[k++]+48));}
| ^~~~
main.c:2:35: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
2 | o(k){r=k>9?fflush(!puts("")),atoi(gets(s)):o(k,putchar(a[k++]+48));}
| ^~~~
main.c:2:48: warning
ソースコード
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;);
}