Wrong Answer

foo.cc: In function 'int main()':
foo.cc:12:23: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
  }else if(c=!(b&(b-1))==1)
                       ^~
foo.cc:12:13: note: add parentheses around left hand side expression to silence this warning
  }else if(c=!(b&(b-1))==1)
             ^~~~~~~~~~
             (         )
foo.cc:12:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  }else if(c=!(b&(b-1))==1)
           ~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 98, expect 0. 1ms 384.0 KiB
#2 Wrong Answer Read 113, expect 1. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1140 二进制编码第5位是否为0
语言
C++
递交时间
2021-10-23 21:07:07
评测时间
2021-10-23 21:07:07
评测机
分数
0
总耗时
3ms
峰值内存
384.0 KiB