結果
問題 | No.24 数当てゲーム |
ユーザー | testestest |
提出日時 | 2015-08-08 03:26:51 |
言語 | C90 (gcc 11.4.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 153 bytes |
コンパイル時間 | 318 ms |
コンパイル使用メモリ | 23,916 KB |
実行使用メモリ | 6,124 KB |
最終ジャッジ日時 | 2023-09-25 06:44:43 |
合計ジャッジ時間 | 12,554 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
コンパイルメッセージ
main.c:2:11: warning: data definition has no type or storage class char s[9];n=1023,i,x;main(y){for(*s=78;n&=*s-78?x:~x,gets(s)!=NULL;)for(x=0;scanf("%d",&y);x|=1<<y);for(;n/=2;i++);i=!printf("%d",i);} ^ main.c:2:11: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int] main.c:2:18: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] char s[9];n=1023,i,x;main(y){for(*s=78;n&=*s-78?x:~x,gets(s)!=NULL;)for(x=0;scanf("%d",&y);x|=1<<y);for(;n/=2;i++);i=!printf("%d",i);} ^ main.c:2:20: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int] char s[9];n=1023,i,x;main(y){for(*s=78;n&=*s-78?x:~x,gets(s)!=NULL;)for(x=0;scanf("%d",&y);x|=1<<y);for(;n/=2;i++);i=!printf("%d",i);} ^ main.c:2:22: warning: return type defaults to ‘int’ [-Wimplicit-int] char s[9];n=1023,i,x;main(y){for(*s=78;n&=*s-78?x:~x,gets(s)!=NULL;)for(x=0;scanf("%d",&y);x|=1<<y);for(;n/=2;i++);i=!printf("%d",i);} ^~~~ main.c: In function ‘main’: main.c:2:22: warning: type of ‘y’ defaults to ‘int’ [-Wimplicit-int] main.c:2:54: warning: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Wimplicit-function-declaration] char s[9];n=1023,i,x;main(y){for(*s=78;n&=*s-78?x:~x,gets(s)!=NULL;)for(x=0;scanf("%d",&y);x|=1<<y);for(;n/=2;i++);i=!printf("%d",i);} ^~~~ fgets main.c:2:61: warning: comparison between pointer and integer char s[9];n=1023,i,x;main(y){for(*s=78;n&=*s-78?x:~x,gets(s)!=NULL;)for(x=0;scanf("%d",&y);x|=1<<y);for(;n/=2;i++);i=!printf("%d",i);} ^~ /tmp/cczpG2AE.o: In function `main': main.c:(.text.startup+0x3e): warning: the `gets' function is dangerous and should not be used.
ソースコード
#include<stdio.h> char s[9];n=1023,i,x;main(y){for(*s=78;n&=*s-78?x:~x,gets(s)!=NULL;)for(x=0;scanf("%d",&y);x|=1<<y);for(;n/=2;i++);i=!printf("%d",i);}