結果

問題 No.184 たのしい排他的論理和(HARD)
ユーザー 紙ぺーぱー
提出日時 2015-05-14 16:21:48
言語 C90
(gcc 12.3.0)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 139 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 20,480 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-22 14:29:28
合計ジャッジ時間 7,720 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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,s){scanf(s="%lld",&i);while(~scanf(s,&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf(s,1ll<<y);}
      |                     ^~~~
main.c: In function ‘main’:
main.c:1:21: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:21: warning: type of ‘s’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:31: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
    1 | long long a[65],x,y;main(i,s){scanf(s="%lld",&i);while(~scanf(s,&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf(s,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,s){scanf(s="%lld",&i);while(~scanf(s,&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf(s,1ll<<y);}
main.c:1:31: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    1 | long long a[65],x,y;main(i,s){scanf(s="%lld",&i);while(~scanf(s,&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf(s,1ll<<y);}
      |                               ^~~~~
main.c:1:31: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:38: warning: assignment to ‘int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion]
    1 | long long a[65],x,y;main(i,s){scanf(s="%lld",&i);while(~scanf(s,&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf(s,1ll<<y);}
      |                                      ^
main.c:1:38: warning: passing argument 1 of ‘scanf’ makes pointer from integer without a cast [-Wint-conversion]
    1 | long long a[65],x,y;main(i,s){scanf(s="%lld",&i);while(~scanf(s,&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf(s,1ll<<y);}
      |                     

ソースコード

diff #

long long a[65],x,y;main(i,s){scanf(s="%lld",&i);while(~scanf(s,&x))for(i=0;x=x>>i&1?!a[i]&&++y|(a[i]=x)?0:a[i]^x:x;i++);printf(s,1ll<<y);}
0