foo.cc: In function 'void play(std::string, std::string)':
foo.cc:5:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
5 | if(p1=="Rock"&&p2=="Scissors"||p1=="Paper"&&p2=="Rock"||p1=="Scissors"&&p2=="Paper") cout<<"P1";
| ~~~~~~~~~~^~~~~~~~~~~~~~~~
foo.cc:5:72: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
5 | if(p1=="Rock"&&p2=="Scissors"||p1=="Paper"&&p2=="Rock"||p1=="Scissors"&&p2=="Paper") cout<<"P1";
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务