結果
問題 | No.305 鍵(2) |
ユーザー | kotatsugame |
提出日時 | 2017-08-15 23:57:13 |
言語 | C (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 199 bytes |
コンパイル時間 | 242 ms |
コンパイル使用メモリ | 28,288 KB |
実行使用メモリ | 25,604 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2024-07-16 14:01:48 |
合計ジャッジ時間 | 7,386 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | RE | - |
testcase_02 | RE | - |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | f[10],a[10],s[9],c;i,k; | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'f' [-Wimplicit-int] main.c:1:7: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] 1 | f[10],a[10],s[9],c;i,k; | ^ main.c:1:13: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int] 1 | f[10],a[10],s[9],c;i,k; | ^ main.c:1:18: warning: type defaults to 'int' in declaration of 'c' [-Wimplicit-int] 1 | f[10],a[10],s[9],c;i,k; | ^ main.c:1:20: warning: data definition has no type or storage class 1 | f[10],a[10],s[9],c;i,k; | ^ main.c:1:20: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] main.c:1:22: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int] 1 | f[10],a[10],s[9],c;i,k; | ^ main.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int] 2 | o(){for(k=0;k<10;)printf("%d",a[k++]);fflush(!puts(""));return atoi(gets(s));} | ^ main.c: In function 'o': main.c:2:19: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 2 | o(){for(k=0;k<10;)printf("%d",a[k++]);fflush(!puts(""));return atoi(gets(s));} | ^~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf' +++ |+#include <stdio.h> 1 | f[10],a[10],s[9],c;i,k; main.c:2:19: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 2 | o(){for(k=0;k<10;)printf("%d",a[k++]);fflush(!puts(""));return atoi(gets(s));} | ^~~~~~ main.c:2:19: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:2:39: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration] 2 | o(){for(k=0;k<10;)printf("%d",a[k++]);fflush(!puts(""));return atoi(gets(s)
ソースコード
f[10],a[10],s[9],c;i,k; o(){for(k=0;k<10;)printf("%d",a[k++]);fflush(!puts(""));return atoi(gets(s));} main(){ for(c=o();c<10;)for(i=0;i<10&&c<10;c-k?f[i]++,a[i]-=c>k:0,c=k,i++)k=f[i]?c:o(a[i]++); }