結果
| 問題 | No.24 数当てゲーム | 
| コンテスト | |
| ユーザー | 👑  testestest | 
| 提出日時 | 2015-08-08 03:57:13 | 
| 言語 | C90 (gcc 12.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 1 ms / 5,000 ms | 
| コード長 | 123 bytes | 
| コンパイル時間 | 80 ms | 
| コンパイル使用メモリ | 19,712 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-18 05:47:39 | 
| 合計ジャッジ時間 | 573 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 | 
コンパイルメッセージ
main.c:1:8: warning: data definition has no type or storage class
    1 | char s;n,i,x;main(y){for(;gets(&s);)for(n|=s>78?~x:x,x=0;scanf("%d",&y)+1&2;x|=1<<y);for(;n&1<<i++;);i=!printf("%d",i-1);}
      |        ^
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);)for(n|=s>78?~x:x,x=0;scanf("%d",&y)+1&2;x|=1<<y);for(;n&1<<i++;);i=!printf("%d",i-1);}
      |          ^
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);)for(n|=s>78?~x:x,x=0;scanf("%d",&y)+1&2;x|=1<<y);for(;n&1<<i++;);i=!printf("%d",i-1);}
      |            ^
main.c:1:14: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | char s;n,i,x;main(y){for(;gets(&s);)for(n|=s>78?~x:x,x=0;scanf("%d",&y)+1&2;x|=1<<y);for(;n&1<<i++;);i=!printf("%d",i-1);}
      |              ^~~~
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);)for(n|=s>78?~x:x,x=0;scanf("%d",&y)+1&2;x|=1<<y);for(;n&1<<i++;);i=!printf("%d",i-1);}
      |                           ^~~~
main.c:1:58: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
    1 | char s;n,i,x;main(y){for(;gets(&s);)for(n|=s>78?~x:x,x=0;scanf("%d",&y)+1&2;x|=1<<y);for(;n&1<<i++;);i=!printf("%d",i-1);}
      |                                                          ^~~~~
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);)for(n|=s>78?~x:x,x=0;scanf("%d",&y)+1&2;x|=1<<y);for(;n&1<<i++;);i=!printf("%d",i-1);}
main.c:1:58: warning: incompatible implicit declaration o
            
            ソースコード
char s;n,i,x;main(y){for(;gets(&s);)for(n|=s>78?~x:x,x=0;scanf("%d",&y)+1&2;x|=1<<y);for(;n&1<<i++;);i=!printf("%d",i-1);}
            
            
            
        