結果

問題 No.304 鍵(1)
ユーザー 👑 testestesttestestest
提出日時 2015-11-27 22:50:58
言語 C90
(gcc 11.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 95 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 18,944 KB
実行使用メモリ 40,016 KB
最終ジャッジ日時 2024-07-16 21:48:07
合計ジャッジ時間 6,519 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:12: warning: data definition has no type or storage class
    1 | char s[10];i;
      |            ^
main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
main.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    2 | main(){for(;printf("%03d\n",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\n",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\n",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:34: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
    2 | main(){for(;printf("%03d\n",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:41: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
    2 | main(){for(;printf("%03d\n",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;}
      |                                         ^~~~
main.c:2:41: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
    2 | main(){for(;printf("%03d\n",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;}
      |                                         ^~~~~~~
      |                            

ソースコード

diff #

char s[10];i;
main(){for(;printf("%03d\n",i++),strcmp(gets(s),"unlocked");fflush(0));return 0;}
0