結果
問題 | No.445 得点 |
ユーザー | nxteru |
提出日時 | 2017-03-27 13:08:19 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 81 bytes |
コンパイル時間 | 132 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-06 12:12:48 |
合計ジャッジ時間 | 864 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
コンパイルメッセージ
main.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int] 1 | main(){float a,b;scanf("%f%f",&a,&b);printf("%f",50*a+floorf(50*a/(0.8+0.2*b)));} | ^~~~ main.c: In function 'main': main.c:1:18: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(){float a,b;scanf("%f%f",&a,&b);printf("%f",50*a+floorf(50*a/(0.8+0.2*b)));} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | main(){float a,b;scanf("%f%f",&a,&b);printf("%f",50*a+floorf(50*a/(0.8+0.2*b)));} main.c:1:18: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | main(){float a,b;scanf("%f%f",&a,&b);printf("%f",50*a+floorf(50*a/(0.8+0.2*b)));} | ^~~~~ main.c:1:18: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:38: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | main(){float a,b;scanf("%f%f",&a,&b);printf("%f",50*a+floorf(50*a/(0.8+0.2*b)));} | ^~~~~~ main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:38: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:1:38: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:55: warning: implicit declaration of function 'floorf' [-Wimplicit-function-declaration] 1 | main(){float a,b;scanf("%f%f",&a,&b);printf("%f",50*a+floorf(50*a/(0.8+0.2*b)));} | ^~~~~~ main.c:1:1: note: include '<math.h>' or provide a declaration of 'floorf' +++ |+#include <math.h> 1 | main(){float a,b;scanf("%f%f",&a,&b);printf("%f",50*a+floorf(50*a/(0.8+0.2*b)));} main.c:1:55: warning: incompatible implicit declaration of built-in function 'floorf' [-Wbuiltin-declaration-mismatch]
ソースコード
main(){float a,b;scanf("%f%f",&a,&b);printf("%f",50*a+floorf(50*a/(0.8+0.2*b)));}