結果
問題 | No.553 AlphaCoder Rating |
ユーザー | testestest |
提出日時 | 2017-11-06 06:10:24 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 135 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 28,300 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-08-15 18:50:43 |
合計ジャッジ時間 | 1,024 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 1 ms
4,380 KB |
testcase_04 | AC | 1 ms
4,376 KB |
testcase_05 | AC | 1 ms
4,380 KB |
testcase_06 | AC | 0 ms
4,380 KB |
testcase_07 | AC | 1 ms
4,380 KB |
testcase_08 | AC | 1 ms
4,380 KB |
testcase_09 | AC | 1 ms
4,376 KB |
testcase_10 | AC | 0 ms
4,376 KB |
testcase_11 | AC | 1 ms
4,376 KB |
testcase_12 | AC | 0 ms
4,380 KB |
testcase_13 | AC | 1 ms
4,376 KB |
testcase_14 | AC | 0 ms
4,380 KB |
コンパイルメッセージ
main.c:1:1: 警告: データ定義が型または記憶域クラスを持っていません 1 | t;float r,n;main(i){for(;~scanf("%d",&t);r=--i?r:1)r*=.9,n+=r*pow(2,t/8e2);printf("%f",800*log2(n/(1-r)/9)+358*(1-sqrt(1-r*r)/(1-r)));} | ^ main.c:1:1: 警告: 型がデフォルトの ‘int’ に ‘t’ の宣言内でなります [-Wimplicit-int] main.c:1:13: 警告: 戻り値の型をデフォルトの ‘int’ にします [-Wimplicit-int] 1 | t;float r,n;main(i){for(;~scanf("%d",&t);r=--i?r:1)r*=.9,n+=r*pow(2,t/8e2);printf("%f",800*log2(n/(1-r)/9)+358*(1-sqrt(1-r*r)/(1-r)));} | ^~~~ main.c: 関数 ‘main’ 内: main.c:1:13: 警告: ‘i’ の型をデフォルトの ‘int’ にします [-Wimplicit-int] main.c:1:27: 警告: 関数 ‘scanf’ の暗黙的な宣言です [-Wimplicit-function-declaration] 1 | t;float r,n;main(i){for(;~scanf("%d",&t);r=--i?r:1)r*=.9,n+=r*pow(2,t/8e2);printf("%f",800*log2(n/(1-r)/9)+358*(1-sqrt(1-r*r)/(1-r)));} | ^~~~~ main.c:1:1: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | t;float r,n;main(i){for(;~scanf("%d",&t);r=--i?r:1)r*=.9,n+=r*pow(2,t/8e2);printf("%f",800*log2(n/(1-r)/9)+358*(1-sqrt(1-r*r)/(1-r)));} main.c:1:27: 警告: 組み込み関数 ‘scanf’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch] 1 | t;float r,n;main(i){for(;~scanf("%d",&t);r=--i?r:1)r*=.9,n+=r*pow(2,t/8e2);printf("%f",800*log2(n/(1-r)/9)+358*(1-sqrt(1-r*r)/(1-r)));} | ^~~~~ main.c:1:27: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:63: 警告: 関数 ‘pow’ の暗黙的な宣言です [-Wimplicit-function-declaration] 1 | t;float r,n;main(i){for(;~scanf("%d",&t);r=--i?r:1)r*=.9,n+=r*pow(2,t/8e2);printf("%f",800*log2(n/(1-r)/9)+358*(1-sqrt(1-r*r)/(1-r)));} |
ソースコード
t;float r,n;main(i){for(;~scanf("%d",&t);r=--i?r:1)r*=.9,n+=r*pow(2,t/8e2);printf("%f",800*log2(n/(1-r)/9)+358*(1-sqrt(1-r*r)/(1-r)));}