Wrong Answer

foo.cc: In function 'int main()':
foo.cc:7:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    7 |  if(N=0)
      |     ~^~
foo.cc:7:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    7 |  if(N=0)
      |  ^~
foo.cc:9:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    9 |   if(N>0)
      |   ^~
foo.cc:9:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
foo.cc:11:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   11 |    if(N<0)
      |    ^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1 > negative \ No newline at 4ms 256.0 KiB
#2 Wrong Answer 0a1 > zero \ No newline at end 2ms 256.0 KiB
#3 Wrong Answer 0a1 > positive 4ms 384.0 KiB
#4 Wrong Answer 0a1 > negative \ No newline at 2ms 384.0 KiB
#5 Wrong Answer 0a1 > positive \ No newline at 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P2330 1.4.1:判断数正负
语言
C++
递交时间
2022-07-01 13:58:56
评测时间
2022-07-01 13:58:56
评测机
分数
0
总耗时
17ms
峰值内存
384.0 KiB