foo.cc: In function 'int main()':
foo.cc:12:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
12 | if(i==0&&j==0 || i==0&&j==n-1 || i==m-1&&j==0 || i==m-1&&j==n-1){
| ~~~~^~~~~~
foo.cc:12:64: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
12 | if(i==0&&j==0 || i==0&&j==n-1 || i==m-1&&j==0 || i==m-1&&j==n-1){
| ~~~~~~^~~~~~
foo.cc:12:80: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
12 | if(i==0&&j==0 || i==0&&j==n-1 || i==m-1&&j==0 || i==m-1&&j==n-1){
| ~~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务