結果
| 問題 | No.24 数当てゲーム |
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2017-07-30 07:47:29 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 105 bytes |
| 記録 | |
| コンパイル時間 | 94 ms |
| コンパイル使用メモリ | 29,892 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 16:12:44 |
| 合計ジャッジ時間 | 556 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 10 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | s,n,x;main(y){for(;gets(&s);)for(n|=s>3e4?~x:x,x=0;scanf("%d",&y)>0;x|=1<<y);printf("%.f",log2(~n&-~n));}
| ^
main.c: In function ‘main’:
main.c:1:52: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | s,n,x;main(y){for(;gets(&s);)for(n|=s>3e4?~x:x,x=0;scanf("%d",&y)>0;x|=1<<y);printf("%.f",log2(~n&-~n));}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | s,n,x;main(y){for(;gets(&s);)for(n|=s>3e4?~x:x,x=0;scanf("%d",&y)>0;x|=1<<y);printf("%.f",log2(~n&-~n));}
main.c:1:78: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch]
1 | s,n,x;main(y){for(;gets(&s);)for(n|=s>3e4?~x:x,x=0;scanf("%d",&y)>0;x|=1<<y);printf("%.f",log2(~n&-~n));}
| ^~~~~~
main.c:1:78: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
main.c:1:88: warning: format ‘%f’ expects argument of type ‘double’, but argument 2 has type ‘int’ [-Wformat=]
1 | s,n,x;main(y){for(;gets(&s);)for(n|=s>3e4?~x:x,x=0;scanf("%d",&y)>0;x|=1<<y);printf("%.f",log2(~n&-~n));}
| ~~^ ~~~~~~~~~~~~
| | |
| | int
| double
| %.d
/usr/bin/ld: /tmp/ccui6vG8.o: in function `main':
main.c:(.text.startup+0x36): 警告: the `
ソースコード
s,n,x;main(y){for(;gets(&s);)for(n|=s>3e4?~x:x,x=0;scanf("%d",&y)>0;x|=1<<y);printf("%.f",log2(~n&-~n));}
testestest