记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:10:19: error: expected primary-expression before 'int'
   10 |         m=x*(10**(int k));
      |                   ^~~
foo.cc:10:19: error: expected ')' before 'int'
   10 |         m=x*(10**(int k));
      |                  ~^~~
      |                   )
foo.cc:10:26: error: expected ')' before ';' token
   10 |         m=x*(10**(int k));
      |             ~            ^
      |                          )
foo.cc:13:16: error: expected primary-expression before 'int'
   13 |         if (m-(int m)<0.5)
      |                ^~~
foo.cc:13:16: error: expected ')' before 'int'
   13 |         if (m-(int m)<0.5)
      |               ~^~~
      |                )
foo.cc:17:10: error: expected ')' before 'else'
   17 |         }
      |          ^
      |          )
   18 |         else
      |         ~~~~
foo.cc:13:12: note: to match this '('
   13 |         if (m-(int m)<0.5)
      |            ^
foo.cc:24:1: error: expected primary-expression before '}' token
   24 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
语言
C++
递交时间
2023-10-09 18:58:49
评测时间
2023-10-09 18:58:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes