結果
| 問題 | No.184 たのしい排他的論理和(HARD) |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-11-08 11:41:49 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 115 bytes |
| 記録 | |
| コンパイル時間 | 122 ms |
| コンパイル使用メモリ | 29,128 KB |
| 最終ジャッジ日時 | 2026-02-23 19:48:11 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 14 OLE * 20 |
コンパイルメッセージ
main.c:1:8: 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;!a[i]&p>>i?a[i]++,s++,0:++i<61;)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;!a[i]&p>>i?a[i]++,s++,0:++i<61;)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;!a[i]&p>>i?a[i]++,s++,0:++i<61;)printf("%ld",1L<<s);}
main.c:1:95: 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;!a[i]&p>>i?a[i]++,s++,0:++i<61;)printf("%ld",1L<<s);}
| ^~~~~~
main.c:1:95: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
/usr/bin/ld: /tmp/cc2SkikT.o: in function `main':
main.c:(.text.startup+0x2d): 警告: 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;!a[i]&p>>i?a[i]++,s++,0:++i<61;)printf("%ld",1L<<s);}
testestest