結果

問題 No.184 たのしい排他的論理和(HARD)
コンテスト
ユーザー 紙ぺーぱー
提出日時 2015-05-14 15:55:28
言語 C90(gcc12)
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 149 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 327 ms
コンパイル使用メモリ 29,124 KB
最終ジャッジ日時 2026-02-23 18:22:28
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 34
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:1:34: warning: assignment to ‘int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion]
    1 | long long a[65],x,y,i;main(n,s){s="%lld";scanf(s,&n);while(n--&&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:42: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
    1 | long long a[65],x,y,i;main(n,s){s="%lld";scanf(s,&n);while(n--&&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,i;main(n,s){s="%lld";scanf(s,&n);while(n--&&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:48: warning: passing argument 1 of ‘scanf’ makes pointer from integer without a cast [-Wint-conversion]
    1 | long long a[65],x,y,i;main(n,s){s="%lld";scanf(s,&n);while(n--&&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);}
      |                                                ^
      |                                                |
      |                                                int
main.c:1:48: note: expected ‘const char *’ but argument is of type ‘int’
main.c:1:71: warning: passing argument 1 of ‘scanf’ makes pointer from integer without a cast [-Wint-conversion]
    1 | long long a[65],x,y,i;main(n,s){s="%lld";scanf(s,&n);while(n--&&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);}
      |                                                                       ^
      |                                                                       |
      |                                                                       int

ソースコード

diff #
raw source code

long long a[65],x,y,i;main(n,s){s="%lld";scanf(s,&n);while(n--&&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