結果
問題 |
No.253 ロウソクの長さ
|
ユーザー |
👑 ![]() |
提出日時 | 2016-02-10 23:32:23 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 29 ms / 2,000 ms |
コード長 | 121 bytes |
コンパイル時間 | 161 ms |
コンパイル使用メモリ | 19,712 KB |
実行使用メモリ | 25,476 KB |
平均クエリ数 | 26.67 |
最終ジャッジ日時 | 2024-07-16 22:54:01 |
合計ジャッジ時間 | 3,211 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 36 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | d=64,s,j;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2)-!!d*j)),d;j++?s+=!!~i*d:(d=i+1?1<<30:64))scanf("%d",&i);} | ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘d’ [-Wimplicit-int] main.c:1:6: warning: type defaults to ‘int’ in declaration of ‘s’ [-Wimplicit-int] 1 | d=64,s,j;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2)-!!d*j)),d;j++?s+=!!~i*d:(d=i+1?1<<30:64))scanf("%d",&i);} | ^ main.c:1:8: warning: type defaults to ‘int’ in declaration of ‘j’ [-Wimplicit-int] 1 | d=64,s,j;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2)-!!d*j)),d;j++?s+=!!~i*d:(d=i+1?1<<30:64))scanf("%d",&i);} | ^ main.c:1:10: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | d=64,s,j;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2)-!!d*j)),d;j++?s+=!!~i*d:(d=i+1?1<<30:64))scanf("%d",&i);} | ^~~~ main.c: In function ‘main’: main.c:1:10: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int] main.c:1:23: warning: implicit declaration of function ‘fflush’ [-Wimplicit-function-declaration] 1 | d=64,s,j;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2)-!!d*j)),d;j++?s+=!!~i*d:(d=i+1?1<<30:64))scanf("%d",&i);} | ^~~~~~ main.c:1:31: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | d=64,s,j;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2)-!!d*j)),d;j++?s+=!!~i*d:(d=i+1?1<<30:64))scanf("%d",&i);} | ^~~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ +++ |+#include <stdio.h> 1 | d=64,s,j;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2)-!!d*j)),d;j++?s+=!!~i*d:(d=i+1?1<<30:64))scanf("%d",&i);} main.c:1:31: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declarat
ソースコード
d=64,s,j;main(i){for(;fflush(!printf("%c %d\n",d?63:33,s+(d/=2)-!!d*j)),d;j++?s+=!!~i*d:(d=i+1?1<<30:64))scanf("%d",&i);}