Wrong Answer

foo.cc: In function 'int main()':
foo.cc:8:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    8 |         else if(n=0)
      |                 ~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Wrong Answer Read negative, expect zero. 4ms 328.0 KiB
#3 Accepted 1ms 412.0 KiB
#4 Accepted 4ms 412.0 KiB
#5 Accepted 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P2330 1.4.1:判断数正负
语言
C++
递交时间
2023-07-22 11:11:48
评测时间
2023-07-22 11:11:48
评测机
分数
80
总耗时
18ms
峰值内存
412.0 KiB