結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-08-15 22:42:08 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 118 bytes |
| 記録 | |
| コンパイル時間 | 271 ms |
| コンパイル使用メモリ | 20,400 KB |
| 実行使用メモリ | 8,348 KB |
| 最終ジャッジ日時 | 2024-07-18 09:44:46 |
| 合計ジャッジ時間 | 6,716 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 TLE * 1 -- * 8 |
コンパイルメッセージ
main.c:1:8: warning: data definition has no type or storage class
1 | char s;n,i,x;main(y){for(;gets(&s);n|=s>78?~x:x)for(x=0;scanf("%d",&y)>0;x|=1<<y);for(;n&1<<i;i++);i=!printf("%d",i);}
| ^
main.c:1:8: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int]
main.c:1:10: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
1 | char s;n,i,x;main(y){for(;gets(&s);n|=s>78?~x:x)for(x=0;scanf("%d",&y)>0;x|=1<<y);for(;n&1<<i;i++);i=!printf("%d",i);}
| ^
main.c:1:12: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int]
1 | char s;n,i,x;main(y){for(;gets(&s);n|=s>78?~x:x)for(x=0;scanf("%d",&y)>0;x|=1<<y);for(;n&1<<i;i++);i=!printf("%d",i);}
| ^
main.c:1:14: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | char s;n,i,x;main(y){for(;gets(&s);n|=s>78?~x:x)for(x=0;scanf("%d",&y)>0;x|=1<<y);for(;n&1<<i;i++);i=!printf("%d",i);}
| ^~~~
main.c: In function ‘main’:
main.c:1:14: warning: type of ‘y’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:27: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
1 | char s;n,i,x;main(y){for(;gets(&s);n|=s>78?~x:x)for(x=0;scanf("%d",&y)>0;x|=1<<y);for(;n&1<<i;i++);i=!printf("%d",i);}
| ^~~~
main.c:1:57: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
1 | char s;n,i,x;main(y){for(;gets(&s);n|=s>78?~x:x)for(x=0;scanf("%d",&y)>0;x|=1<<y);for(;n&1<<i;i++);i=!printf("%d",i);}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | char s;n,i,x;main(y){for(;gets(&s);n|=s>78?~x:x)for(x=0;scanf("%d",&y)>0;x|=1<<y);for(;n&1<<i;i++);i=!printf("%d",i);}
main.c:1:57: warning: incompatible implicit declaration of built-in function ‘scanf�
ソースコード
char s;n,i,x;main(y){for(;gets(&s);n|=s>78?~x:x)for(x=0;scanf("%d",&y)>0;x|=1<<y);for(;n&1<<i;i++);i=!printf("%d",i);}
testestest