結果
問題 |
No.184 たのしい排他的論理和(HARD)
|
ユーザー |
![]() |
提出日時 | 2015-05-14 16:46:41 |
言語 | C90 (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 135 bytes |
コンパイル時間 | 125 ms |
コンパイル使用メモリ | 19,712 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-04 11:47:53 |
合計ジャッジ時間 | 6,190 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 34 |
コンパイルメッセージ
main.c:1:21: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | long long a[65],x,y;main(i){for(gets(i);~scanf("%lld",&x);)for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);} | ^~~~ main.c: In function ‘main’: main.c:1:21: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c:1:33: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] 1 | long long a[65],x,y;main(i){for(gets(i);~scanf("%lld",&x);)for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);} | ^~~~ main.c:1:42: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | long long a[65],x,y;main(i){for(gets(i);~scanf("%lld",&x);)for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | long long a[65],x,y;main(i){for(gets(i);~scanf("%lld",&x);)for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);} main.c:1:42: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | long long a[65],x,y;main(i){for(gets(i);~scanf("%lld",&x);)for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);} | ^~~~~ main.c:1:42: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:113: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | long long a[65],x,y;main(i){for(gets(i);~scanf("%lld",&x);)for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);} | ^~~~~~ main.c:1:113: note: i
ソースコード
long long a[65],x,y;main(i){for(gets(i);~scanf("%lld",&x);)for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf("%lld",1ll<<y);}