結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー testestesttestestest
提出日時 2015-11-08 11:41:49
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 115 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 23,452 KB
実行使用メモリ 5,184 KB
最終ジャッジ日時 2023-09-17 17:22:08
合計ジャッジ時間 17,319 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 OLE -
testcase_09 WA -
testcase_10 OLE -
testcase_11 OLE -
testcase_12 OLE -
testcase_13 OLE -
testcase_14 OLE -
testcase_15 OLE -
testcase_16 OLE -
testcase_17 OLE -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 OLE -
testcase_22 OLE -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 OLE -
testcase_29 OLE -
testcase_30 OLE -
testcase_31 OLE -
testcase_32 OLE -
testcase_33 OLE -
testcase_34 OLE -
testcase_35 OLE -
testcase_36 OLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:8: warning: data definition has no type or storage class
 long p;a[62],s;main(i){for(gets(&p);~scanf("%ld",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<61;)printf("%ld",1L<<s);}
        ^
main.c:1:8: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:1:14: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int]
 long p;a[62],s;main(i){for(gets(&p);~scanf("%ld",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<61;)printf("%ld",1L<<s);}
              ^
main.c:1:16: warning: return type defaults to ‘int’ [-Wimplicit-int]
 long p;a[62],s;main(i){for(gets(&p);~scanf("%ld",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<61;)printf("%ld",1L<<s);}
                ^~~~
main.c: In function ‘main’:
main.c:1:16: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:28: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
 long p;a[62],s;main(i){for(gets(&p);~scanf("%ld",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<61;)printf("%ld",1L<<s);}
                            ^~~~
main.c:1:38: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 long p;a[62],s;main(i){for(gets(&p);~scanf("%ld",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<61;)printf("%ld",1L<<s);}
                                      ^~~~~
main.c:1:38: warning: incompatible implicit declaration of built-in function ‘scanf’
main.c:1:38: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+#include <stdio.h>
 long p;a[62],s;main(i){for(gets(&p);~scanf("%ld",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<61;)printf("%ld",1L<<s);}
                                      ^~~~~
main.c:1:95: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
 long p;a[62],s;main(i){for(gets(&p);~scanf("%ld",&p);)for(i=0;!a[i]&p>>i?a[i]++,s++,0:++i<61;)printf("%ld",1L<<s);}
                                                                                       

ソースコード

diff #

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