Accepted

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)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 4ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1090 猜拳游戏(2)
语言
C++
递交时间
2022-07-16 12:21:00
评测时间
2022-07-16 12:21:00
评测机
分数
100
总耗时
12ms
峰值内存
384.0 KiB