結果

問題 No.183 たのしい排他的論理和(EASY)
ユーザー testestesttestestest
提出日時 2015-11-08 12:27:13
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 111 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 23,228 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-11 15:19:16
合計ジャッジ時間 1,105 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 WA -
testcase_03 AC 0 ms
4,352 KB
testcase_04 AC 1 ms
4,352 KB
testcase_05 AC 1 ms
4,352 KB
testcase_06 AC 1 ms
4,352 KB
testcase_07 AC 2 ms
4,352 KB
testcase_08 AC 1 ms
4,352 KB
testcase_09 AC 1 ms
4,348 KB
testcase_10 AC 1 ms
4,348 KB
testcase_11 AC 2 ms
4,352 KB
testcase_12 AC 0 ms
4,348 KB
testcase_13 AC 1 ms
4,348 KB
testcase_14 AC 1 ms
4,348 KB
testcase_15 AC 2 ms
4,348 KB
testcase_16 WA -
testcase_17 AC 1 ms
4,352 KB
testcase_18 AC 2 ms
4,352 KB
testcase_19 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
 a[15],p,s;main(i){for(gets(&p);~scanf("%d",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<15;);p=!printf("%d",1<<s);}
 ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘p’ [-Wimplicit-int]
 a[15],p,s;main(i){for(gets(&p);~scanf("%d",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<15;);p=!printf("%d",1<<s);}
       ^
main.c:1:9: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
 a[15],p,s;main(i){for(gets(&p);~scanf("%d",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<15;);p=!printf("%d",1<<s);}
         ^
main.c:1:11: warning: return type defaults to ‘int’ [-Wimplicit-int]
 a[15],p,s;main(i){for(gets(&p);~scanf("%d",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<15;);p=!printf("%d",1<<s);}
           ^~~~
main.c: In function ‘main’:
main.c:1:11: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:23: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 a[15],p,s;main(i){for(gets(&p);~scanf("%d",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<15;);p=!printf("%d",1<<s);}
                       ^~~~
main.c:1:33: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 a[15],p,s;main(i){for(gets(&p);~scanf("%d",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<15;);p=!printf("%d",1<<s);}
                                 ^~~~~
main.c:1:33: warning: incompatible implicit declaration of built-in function ‘scanf’
main.c:1:33: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+#include <stdio.h>
 a[15],p,s;main(i){for(gets(&p);~scanf("%d",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<15;);p=!printf("%d",1<<s);}
                                 ^~~~~
main.c:1:93: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 a[15],p,s;main(i){for(gets(&p);~scanf("%d",&p);

ソースコード

diff #

a[15],p,s;main(i){for(gets(&p);~scanf("%d",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<15;);p=!printf("%d",1<<s);}
0