Accepted

foo.cc: In function 'int main()':
foo.cc:27:20: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   27 |    if(p1[i][0]=='R'&&p2[i][0]=='S'||p1[i][0]=='S'&&p2[i][0]=='P'||p1[i][0]=='P'&&p2[i][0]=='R')
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
foo.cc:27:80: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   27 |    if(p1[i][0]=='R'&&p2[i][0]=='S'||p1[i][0]=='S'&&p2[i][0]=='P'||p1[i][0]=='P'&&p2[i][0]=='R')
      |                                                                   ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
foo.cc:17:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   17 |   scanf("%s %s",p1[i],p2[i]);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1176 猜拳游戏(1)
语言
C++
递交时间
2022-07-10 22:13:16
评测时间
2022-07-10 22:13:16
评测机
分数
100
总耗时
7ms
峰值内存
384.0 KiB