結果
問題 | No.304 鍵(1) |
ユーザー | testestest |
提出日時 | 2015-11-27 22:49:08 |
言語 | C90 (gcc 11.4.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 93 bytes |
コンパイル時間 | 120 ms |
コンパイル使用メモリ | 22,324 KB |
実行使用メモリ | 36,408 KB |
最終ジャッジ日時 | 2023-09-23 22:01:39 |
合計ジャッジ時間 | 6,615 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
コンパイルメッセージ
main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int] main(){for(;printf("%03d",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;} ^~~~ main.c: In function ‘main’: main.c:2:13: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] main(){for(;printf("%03d",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;} ^~~~~~ main.c:2:13: warning: incompatible implicit declaration of built-in function ‘printf’ main.c:2:13: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ +#include <stdio.h> char s[10],i; main(){for(;printf("%03d",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;} ^~~~~~ main.c:2:32: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration] main(){for(;printf("%03d",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;} ^~~~~~ main.c:2:39: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] main(){for(;printf("%03d",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;} ^~~~ main.c:2:59: warning: implicit declaration of function ‘fflush’ [-Wimplicit-function-declaration] main(){for(;printf("%03d",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;} ^~~~~~ /tmp/cc9UXWSy.o: In function `main': main.c:(.text.startup+0x3d): warning: the `gets' function is dangerous and should not be used.
ソースコード
char s[10],i; main(){for(;printf("%03d",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;}