Wrong Answer

foo.cc: In function 'int main()':
foo.cc:9:15: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'long double' [-Wformat=]
    9 |   printf("%.2lf",n*0.8);
      |           ~~~~^  ~~~~~
      |               |   |
      |               |   long double
      |               double
      |           %.2Lf
foo.cc:11:15: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'long double' [-Wformat=]
   11 |   printf("%.2lf",n*0.85);
      |           ~~~~^  ~~~~~~
      |               |   |
      |               |   long double
      |               double
      |           %.2Lf
foo.cc:13:15: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'long double' [-Wformat=]
   13 |   printf("%.2lf",n*0.9);
      |           ~~~~^  ~~~~~
      |               |   |
      |               |   long double
      |               double
      |           %.2Lf
foo.cc:15:15: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'long double' [-Wformat=]
   15 |   printf("%.2lf",n*0.95);
      |           ~~~~^  ~~~~~~
      |               |   |
      |               |   long double
      |               double
      |           %.2Lf
foo.cc:17:15: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'long double' [-Wformat=]
   17 |   printf("%.2lf",n);
      |           ~~~~^  ~
      |               |  |
      |               |  long double
      |               double
      |           %.2Lf
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0.00, expect 320.00. 4ms 384.0 KiB
#2 Wrong Answer Read 0.00, expect 717.72. 2ms 384.0 KiB
#3 Wrong Answer Read 0.00, expect 1158.12. 2ms 384.0 KiB
#4 Wrong Answer Read 0.00, expect 1275.00. 2ms 384.0 KiB
#5 Wrong Answer Read 0.00, expect 2300.80. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1027 超市促销活动
语言
C++
递交时间
2022-07-11 10:56:08
评测时间
2022-07-11 10:56:08
评测机
分数
0
总耗时
15ms
峰值内存
384.0 KiB