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