Wrong Answer

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 Wrong Answer Read T, expect P2. 2ms 384.0 KiB
#2 Wrong Answer Read T, expect P1. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1077 猜拳游戏(1)
语言
C++
递交时间
2022-07-16 08:53:30
评测时间
2022-07-16 08:53:30
评测机
分数
0
总耗时
4ms
峰值内存
384.0 KiB