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)提供评测服务