记录详情

Compile Error

foo.cc:9:5: error: 'int iszero' redeclared as different kind of entity
    9 | int iszero=0;
      |     ^~~~~~
In file included from /usr/include/c++/9/cmath:45,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
                 from foo.cc:3:
/usr/include/math.h:1048:1: note: previous declaration 'template<class __T> bool iszero(__T)'
 1048 | iszero (__T __val)
      | ^~~~~~
foo.cc: In function 'int main()':
foo.cc:18:12: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator>='
   18 |   if(iszero>=2)
      |      ~~~~~~^~~
foo.cc:31:11: error: no post-increment operator for type
   31 |     iszero++;
      |           ^~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1350 2C 有趣的数学题
语言
C++
递交时间
2022-04-04 22:21:33
评测时间
2022-04-04 22:24:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes