foo.cc: In function 'int main()':
foo.cc:25:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
25 | if(a[i]=='R' && b[j]=='S' || a[i]=='P' && b[j]=='R' || a[i]=='S' && b[j]=='P' /*|| a[i]==b[j]*/)
| ~~~~~~~~~~^~~~~~~~~~~~
foo.cc:25:68: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
25 | if(a[i]=='R' && b[j]=='S' || a[i]=='P' && b[j]=='R' || a[i]=='S' && b[j]=='P' /*|| a[i]==b[j]*/)
| ~~~~~~~~~~^~~~~~~~~~~~
foo.cc:29:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
29 | if(b[j]=='R' && a[i]=='S' || b[j]=='P' && a[i]=='R' || b[j]=='S' && a[i]=='P'/*|| a[i]==b[j]*/)
| ~~~~~~~~~~^~~~~~~~~~~~
foo.cc:29:68: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
29 | if(b[j]=='R' && a[i]=='S' || b[j]=='P' && a[i]=='R' || b[j]=='S' && a[i]=='P'/*|| a[i]==b[j]*/)
| ~~~~~~~~~~^~~~~~~~~~~~
foo.cc:13:20: warning: unused variable 'z' [-Wunused-variable]
13 | int n,m,o,x=0,y=0,z=0,j=0;
| ^
[Hydro](https://hydro.ac)提供评测服务