結果
問題 |
No.285 消費税2
|
ユーザー |
![]() |
提出日時 | 2015-10-17 10:11:58 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 103 bytes |
コンパイル時間 | 100 ms |
コンパイル使用メモリ | 23,680 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-22 10:04:28 |
合計ジャッジ時間 | 851 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | WA * 26 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:3:25: warning: format ‘%lf’ expects argument of type ‘double*’, but argument 2 has type ‘long double*’ [-Wformat=] 3 | long double d; scanf("%lf", &d); | ~~^ ~~ | | | | | long double* | double* | %Lf main.cpp:4:13: warning: format ‘%f’ expects argument of type ‘double’, but argument 2 has type ‘long double’ [-Wformat=] 4 | printf("%.15f\n", d*1.08); | ~~~~^ ~~~~~~ | | | | double long double | %.15Lf main.cpp:3:21: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 3 | long double d; scanf("%lf", &d); | ~~~~~^~~~~~~~~~~
ソースコード
#include <stdio.h> int main() { long double d; scanf("%lf", &d); printf("%.15f\n", d*1.08); return 0; }