Compile Error

foo.cc: In function 'int main()':
foo.cc:9:28: error: expected ')' before '\U0000ff0cx'
    9 |                 printf("%f",x*0.95);
      |                       ~    ^~~
      |                            )
foo.cc:9:26: warning: format '%f' expects a matching 'double' argument [-Wformat=]
    9 |                 printf("%f",x*0.95);
      |                         ~^
      |                          |
      |                          double
foo.cc:13:36: error: expected ')' before '\U0000ff0cx'
   13 |                         printf("%f",x*0.9);
      |                               ~    ^~~
      |                                    )
foo.cc:13:34: warning: format '%f' expects a matching 'double' argument [-Wformat=]
   13 |                         printf("%f",x*0.9);
      |                                 ~^
      |                                  |
      |                                  double
foo.cc:17:36: error: expected ')' before '\U0000ff0cx'
   17 |                         printf("%f",x*0.85);
      |                               ~    ^~~
      |                                    )
foo.cc:17:34: warning: format '%f' expects a matching 'double' argument [-Wformat=]
   17 |                         printf("%f",x*0.85);
      |                                 ~^
      |                                  |
      |                                  double
foo.cc:21:36: error: expected ')' before '\U0000ff0cx'
   21 |                         printf("%f",x*0.8);
      |                               ~    ^~~
      |                                    )
foo.cc:21:34: warning: format '%f' expects a matching 'double' argument [-Wformat=]
   21 |                         printf("%f",x*0.8);
      |                                 ~^
      |                                  |
      |                                  double
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1026 超市促销活动
语言
C++
递交时间
2023-12-07 21:33:07
评测时间
2023-12-07 21:33:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes