結果
| 問題 |
No.668 6.0*10^23
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2019-03-16 11:08:58 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 110 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 28,928 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-01 22:23:43 |
| 合計ジャッジ時間 | 3,357 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 42 WA * 8 |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
1 | t;float s,z=1;main(c){for(;read(0,&t,1);z*=.1)c-->-2?s+=(t-48)*z:z;printf("%.1f*10^%d",s,s>9.95?s/=10,-c:~c);}
| ^
main.c:1:1: warning: type defaults to 'int' in declaration of 't' [-Wimplicit-int]
main.c:1:15: warning: return type defaults to 'int' [-Wimplicit-int]
1 | t;float s,z=1;main(c){for(;read(0,&t,1);z*=.1)c-->-2?s+=(t-48)*z:z;printf("%.1f*10^%d",s,s>9.95?s/=10,-c:~c);}
| ^~~~
main.c: In function 'main':
main.c:1:15: warning: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:28: warning: implicit declaration of function 'read' [-Wimplicit-function-declaration]
1 | t;float s,z=1;main(c){for(;read(0,&t,1);z*=.1)c-->-2?s+=(t-48)*z:z;printf("%.1f*10^%d",s,s>9.95?s/=10,-c:~c);}
| ^~~~
main.c:1:68: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | t;float s,z=1;main(c){for(;read(0,&t,1);z*=.1)c-->-2?s+=(t-48)*z:z;printf("%.1f*10^%d",s,s>9.95?s/=10,-c:~c);}
| ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
1 | t;float s,z=1;main(c){for(;read(0,&t,1);z*=.1)c-->-2?s+=(t-48)*z:z;printf("%.1f*10^%d",s,s>9.95?s/=10,-c:~c);}
main.c:1:68: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
1 | t;float s,z=1;main(c){for(;read(0,&t,1);z*=.1)c-->-2?s+=(t-48)*z:z;printf("%.1f*10^%d",s,s>9.95?s/=10,-c:~c);}
| ^~~~~~
main.c:1:68: note: include '<stdio.h>' or provide a declaration of 'printf'
ソースコード
t;float s,z=1;main(c){for(;read(0,&t,1);z*=.1)c-->-2?s+=(t-48)*z:z;printf("%.1f*10^%d",s,s>9.95?s/=10,-c:~c);}
testestest