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:32: error: unable to find string literal operator 'operator""x' with 'const char [3]', 'long unsigned int' arguments
   21 |                         printf("%f"x,*0.8);
      |                                ^~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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