/ Vijos /

记录详情

Compile Error

foo.cc: In function 'void click(int, int)':
foo.cc:20:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
  if (k - 1 >= 0) a[row] ^= 1 << k - 1;
                                 ~~^~~
foo.cc:21:35: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
  if (k + 1 <= 4) a[row] ^= 1 << k + 1;
                                 ~~^~~
foo.cc: In function 'int main()':
foo.cc:47:17: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
     temp = temp - temp & -temp;
            ~~~~~^~~~~~
foo.cc:57:18: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
      temp = temp - temp & -temp;
             ~~~~~^~~~~~

信息

递交者
类型
递交
题目
P1197 费解的开关
语言
C++
递交时间
2020-11-10 22:07:25
评测时间
2020-11-10 22:07:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes