/ WHOJ /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:20:19: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   20 |         if(a[i]==0&&b[j]==2||a[i]==0&&b[j]==3||a[i]==1&&b[j]==0||a[i]==1&&b[j]==3||a[i]==2&&b[j]==1||a[i]==2&&b[j]==4||a[i]==3&&b[j]==2||a[i]==3&&b[j]==4||a[i]==4&&b[j]==0||a[i]==4&&b[j]==1)
      |            ~~~~~~~^~~~~~~~~
foo.cc:20:55: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   20 |         if(a[i]==0&&b[j]==2||a[i]==0&&b[j]==3||a[i]==1&&b[j]==0||a[i]==1&&b[j]==3||a[i]==2&&b[j]==1||a[i]==2&&b[j]==4||a[i]==3&&b[j]==2||a[i]==3&&b[j]==4||a[i]==4&&b[j]==0||a[i]==4&&b[j]==1)
      |                                                ~~~~~~~^~~~~~~~~
foo.cc:20:73: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   20 |         if(a[i]==0&&b[j]==2||a[i]==0&&b[j]==3||a[i]==1&&b[j]==0||a[i]==1&&b[j]==3||a[i]==2&&b[j]==1||a[i]==2&&b[j]==4||a[i]==3&&b[j]==2||a[i]==3&&b[j]==4||a[i]==4&&b[j]==0||a[i]==4&&b[j]==1)
      |                                                                  ~~~~~~~^~~~~~~~~
foo.cc:20:91: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   20 |         if(a[i]==0&&b[j]==2||a[i]==0&&b[j]==3||a[i]==1&&b[j]==0||a[i]==1&&b[j]==3||a[i]==2&&b[j]==1||a[i]==2&&b[j]==4||a[i]==3&&b[j]==2||a[i]==3&&b[j]==4||a[i]==4&&b[j]==0||a[i]==4&&b[j]==1)
      |                                                                                    ~~~~~~~^~~~~~~~~
foo.cc:20:109: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   20 |         if(a[i]==0&&b[j]==2||a[i]==0&&b[j]==3||a[i]==1&&b[j]==0||a[i]==1&&b[j]==3||a[i]==2&&b[j]==1||a[i]==2&&b[j]==4||a[i]==3&&b[j]==2||a[i]==3&&b[j]==4||a[i]==4&&b[j]==0||a[i]==4&&b[j]==1)
      |                                                                                                      ~~~~~~~^~~~~~~~~
foo.cc:20:127: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   20 |         if(a[i]==0&&b[j]==2||a[i]==0&&b[j]==3||a[i]==1&&b[j]==0||a[i]==1&&b[j]==3||a[i]==2&&b[j]==1||a[i]==2&&b[j]==4||a[i]==3&&b[j]==2||a[i]==3&&b[j]==4||a[i]==4&&b[j]==0||a[i]==4&&b[j]==1)
      |                                                                                                                        ~~~~~~~^~~~~~~~~
foo.cc:20:145: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   20 |         if(a[i]==0&&b[j]==2||a[i]==0&&b[j]==3||a[i]==1&&b[j]==0||a[i]==1&&b[j]==3||a[i]==2&&b[j]==1||a[i]==2&&b[j]==4||a[i]==3&&b[j]==2||a[i]==3&&b[j]==4||a[i]==4&&b[j]==0||a[i]==4&&b[j]==1)
      |                                                                                                                                          ~~~~~~~^~~~~~~~~
foo.cc:20:163: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   20 |         if(a[i]==0&&b[j]==2||a[i]==0&&b[j]==3||a[i]==1&&b[j]==0||a[i]==1&&b[j]==3||a[i]==2&&b[j]==1||a[i]==2&&b[j]==4||a[i]==3&&b[j]==2||a[i]==3&&b[j]==4||a[i]==4&&b[j]==0||a[i]==4&&b[j]==1)
      |                                                                                                                                                            ~~~~~~~^~~~~~~~~
foo.cc:20:181: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   20 |         if(a[i]==0&&b[j]==2||a[i]==0&&b[j]==3||a[i]==1&&b[j]==0||a[i]==1&&b[j]==3||a[i]==2&&b[j]==1||a[i]==2&&b[j]==4||a[i]==3&&b[j]==2||a[i]==3&&b[j]==4||a[i]==4&&b[j]==0||a[i]==4&&b[j]==1)
      |                                                                                                                                                                              ~~~~~~~^~~~~~~~~
foo.cc:22:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   22 |         else if(a[i]==0&&b[j]==1||a[i]==0&&b[j]==4||a[i]==1&&b[j]==2||a[i]==1&&b[j]==4||a[i]==2&&b[j]==0||a[i]==2&&b[j]==3||a[i]==3&&b[j]==0||a[i]==3&&b[j]==1||a[i]==4&&b[j]==2||a[i]==4&&b[j]==3)
      |                 ~~~~~~~^~~~~~~~~
foo.cc:22:60: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   22 |         else if(a[i]==0&&b[j]==1||a[i]==0&&b[j]==4||a[i]==1&&b[j]==2||a[i]==1&&b[j]==4||a[i]==2&&b[j]==0||a[i]==2&&b[j]==3||a[i]==3&&b[j]==0||a[i]==3&&b[j]==1||a[i]==4&&b[j]==2||a[i]==4&&b[j]==3)
      |                                                     ~~~~~~~^~~~~~~~~
foo.cc:22:78: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   22 |         else if(a[i]==0&&b[j]==1||a[i]==0&&b[j]==4||a[i]==1&&b[j]==2||a[i]==1&&b[j]==4||a[i]==2&&b[j]==0||a[i]==2&&b[j]==3||a[i]==3&&b[j]==0||a[i]==3&&b[j]==1||a[i]==4&&b[j]==2||a[i]==4&&b[j]==3)
      |                                                                       ~~~~~~~^~~~~~~~~
foo.cc:22:96: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   22 |         else if(a[i]==0&&b[j]==1||a[i]==0&&b[j]==4||a[i]==1&&b[j]==2||a[i]==1&&b[j]==4||a[i]==2&&b[j]==0||a[i]==2&&b[j]==3||a[i]==3&&b[j]==0||a[i]==3&&b[j]==1||a[i]==4&&b[j]==2||a[i]==4&&b[j]==3)
      |                                                                                         ~~~~~~~^~~~~~~~~
foo.cc:22:114: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   22 |         else if(a[i]==0&&b[j]==1||a[i]==0&&b[j]==4||a[i]==1&&b[j]==2||a[i]==1&&b[j]==4||a[i]==2&&b[j]==0||a[i]==2&&b[j]==3||a[i]==3&&b[j]==0||a[i]==3&&b[j]==1||a[i]==4&&b[j]==2||a[i]==4&&b[j]==3)
      |                                                                                                           ~~~~~~~^~~~~~~~~
foo.cc:22:132: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   22 |         else if(a[i]==0&&b[j]==1||a[i]==0&&b[j]==4||a[i]==1&&b[j]==2||a[i]==1&&b[j]==4||a[i]==2&&b[j]==0||a[i]==2&&b[j]==3||a[i]==3&&b[j]==0||a[i]==3&&b[j]==1||a[i]==4&&b[j]==2||a[i]==4&&b[j]==3)
      |                                                                                                                             ~~~~~~~^~~~~~~~~
foo.cc:22:150: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   22 |         else if(a[i]==0&&b[j]==1||a[i]==0&&b[j]==4||a[i]==1&&b[j]==2||a[i]==1&&b[j]==4||a[i]==2&&b[j]==0||a[i]==2&&b[j]==3||a[i]==3&&b[j]==0||a[i]==3&&b[j]==1||a[i]==4&&b[j]==2||a[i]==4&&b[j]==3)
      |                                                                                                                                               ~~~~~~~^~~~~~~~~
foo.cc:22:168: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   22 |         else if(a[i]==0&&b[j]==1||a[i]==0&&b[j]==4||a[i]==1&&b[j]==2||a[i]==1&&b[j]==4||a[i]==2&&b[j]==0||a[i]==2&&b[j]==3||a[i]==3&&b[j]==0||a[i]==3&&b[j]==1||a[i]==4&&b[j]==2||a[i]==4&&b[j]==3)
      |                                                                                                                                                                 ~~~~~~~^~~~~~~~~
foo.cc:22:186: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   22 |         else if(a[i]==0&&b[j]==1||a[i]==0&&b[j]==4||a[i]==1&&b[j]==2||a[i]==1&&b[j]==4||a[i]==2&&b[j]==0||a[i]==2&&b[j]==3||a[i]==3&&b[j]==0||a[i]==3&&b[j]==1||a[i]==4&&b[j]==2||a[i]==4&&b[j]==3)
      |                                                                                                                                                                                   ~~~~~~~^~~~~~~~~
正在同步测试数据,请稍后
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB
#6 Accepted 1ms 384.0 KiB
#7 Accepted 1ms 384.0 KiB
#8 Accepted 3ms 256.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1311 [NOIP2014 提高组] 生活大爆炸版石头剪刀布
题目数据
下载
语言
C++
递交时间
2022-07-16 17:30:05
评测时间
2022-07-16 17:32:43
评测机
分数
100
总耗时
24ms
峰值内存
384.0 KiB