結果
問題 |
No.184 たのしい排他的論理和(HARD)
|
ユーザー |
👑 ![]() |
提出日時 | 2015-11-08 13:13:12 |
言語 | C90 (gcc 12.3.0) |
結果 |
RE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 128 bytes |
コンパイル時間 | 2,428 ms |
コンパイル使用メモリ | 35,328 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2025-01-26 11:12:43 |
合計ジャッジ時間 | 3,738 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 34 |
コンパイルメッセージ
main.c:1:14: warning: data definition has no type or storage class 1 | long p,a[62];s;main(i){for(gets(&p);~scanf("%ld",&p);)for(i=0;p>>i++&1?!a[i]?a[i]=p,s++,0:(p^=a[i]):p;);i=!printf("%ld",1L<<s);} | ^ main.c: In function 'main': main.c:1:38: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | long p,a[62];s;main(i){for(gets(&p);~scanf("%ld",&p);)for(i=0;p>>i++&1?!a[i]?a[i]=p,s++,0:(p^=a[i]):p;);i=!printf("%ld",1L<<s);} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | long p,a[62];s;main(i){for(gets(&p);~scanf("%ld",&p);)for(i=0;p>>i++&1?!a[i]?a[i]=p,s++,0:(p^=a[i]):p;);i=!printf("%ld",1L<<s);} main.c:1:108: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 1 | long p,a[62];s;main(i){for(gets(&p);~scanf("%ld",&p);)for(i=0;p>>i++&1?!a[i]?a[i]=p,s++,0:(p^=a[i]):p;);i=!printf("%ld",1L<<s);} | ^~~~~~ main.c:1:108: note: include '<stdio.h>' or provide a declaration of 'printf' /usr/bin/ld: /tmp/ccLW7d8G.o: in function `main': main.c:(.text.startup+0x1f): 警告: the `gets' function is dangerous and should not be used.
ソースコード
long p,a[62];s;main(i){for(gets(&p);~scanf("%ld",&p);)for(i=0;p>>i++&1?!a[i]?a[i]=p,s++,0:(p^=a[i]):p;);i=!printf("%ld",1L<<s);}