记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:10:17: error: invalid type argument of unary '*' (have 'int')
   10 |         m=x*(10**k);
      |                 ^~
foo.cc:13:15: error: expected primary-expression before 'int'
   13 |         if (m-int m<0.5)
      |               ^~~
foo.cc:13:15: error: expected ')' before 'int'
   13 |         if (m-int m<0.5)
      |            ~  ^~~
      |               )
foo.cc:15:19: error: expected primary-expression before 'int'
   15 |                 m=int m;
      |                   ^~~
foo.cc:16:31: error: invalid type argument of unary '*' (have 'int')
   16 |                 cout << m/(10**k);
      |                               ^~
foo.cc:20:20: error: expected primary-expression before 'int'
   20 |                 m=(int m)+1;
      |                    ^~~
foo.cc:20:20: error: expected ')' before 'int'
   20 |                 m=(int m)+1;
      |                   ~^~~
      |                    )
foo.cc:21:31: error: invalid type argument of unary '*' (have 'int')
   21 |                 cout << m/(10**k);
      |                               ^~
[Hydro](https://hydro.ac)提供评测服务

信息

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