結果
問題 | No.304 鍵(1) |
ユーザー |
👑 ![]() |
提出日時 | 2015-11-27 22:49:08 |
言語 | C90 (gcc 12.3.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 93 bytes |
コンパイル時間 | 617 ms |
コンパイル使用メモリ | 19,200 KB |
実行使用メモリ | 40,400 KB |
最終ジャッジ日時 | 2024-07-16 21:48:14 |
合計ジャッジ時間 | 6,711 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 5 |
コンパイルメッセージ
main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 2 | 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] 2 | main(){for(;printf("%03d",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;} | ^~~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ +++ |+#include <stdio.h> 1 | char s[10],i; main.c:2:13: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] 2 | main(){for(;printf("%03d",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;} | ^~~~~~ main.c:2:13: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:2:32: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration] 2 | main(){for(;printf("%03d",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;} | ^~~~~~ main.c:1:1: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’ +++ |+#include <string.h> 1 | char s[10],i; main.c:2:39: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] 2 | main(){for(;printf("%03d",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;} | ^~~~ main.c:2:39: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion] 2 | main(){for(;printf("%03d",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;} | ^~~~~~~ | | | int main.c:2:39: note: expected ‘const char *’ but argument is of type ‘int’ main.c:2:59: warning: implicit declaration of function ‘fflush’ [-Wimpli
ソースコード
char s[10],i; main(){for(;printf("%03d",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;}