結果
問題 |
No.246 質問と回答
|
ユーザー |
👑 ![]() |
提出日時 | 2016-02-10 23:11:45 |
言語 | C90 (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 91 bytes |
コンパイル時間 | 307 ms |
コンパイル使用メモリ | 19,584 KB |
実行使用メモリ | 25,616 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2024-07-16 08:35:12 |
合計ジャッジ時間 | 8,907 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 30 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | d=1<<30,s;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2))),d;s+=atoi(gets(&i))*d);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘d’ [-Wimplicit-int] main.c:1:9: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] 1 | d=1<<30,s;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2))),d;s+=atoi(gets(&i))*d);} | ^ main.c:1:11: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | d=1<<30,s;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2))),d;s+=atoi(gets(&i))*d);} | ^~~~ main.c: In function ‘main’: main.c:1:11: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c:1:24: warning: implicit declaration of function ‘fflush’ [-Wimplicit-function-declaration] 1 | d=1<<30,s;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2))),d;s+=atoi(gets(&i))*d);} | ^~~~~~ main.c:1:32: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | d=1<<30,s;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2))),d;s+=atoi(gets(&i))*d);} | ^~~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ +++ |+#include <stdio.h> 1 | d=1<<30,s;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2))),d;s+=atoi(gets(&i))*d);} main.c:1:32: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] 1 | d=1<<30,s;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2))),d;s+=atoi(gets(&i))*d);} | ^~~~~~ main.c:1:32: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:73: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration] 1 | d=1<<30,s;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d
ソースコード
d=1<<30,s;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2))),d;s+=atoi(gets(&i))*d);}