Wrong Answer

foo.cc: In function 'int main()':
foo.cc:31:16: warning: statement has no effect [-Wunused-value]
   31 |       b[i-1][j]=='R';
      |       ~~~~~~~~~^~~~~
foo.cc:33:16: warning: statement has no effect [-Wunused-value]
   33 |       b[i+1][j]=='R';
      |       ~~~~~~~~~^~~~~
foo.cc:35:16: warning: statement has no effect [-Wunused-value]
   35 |       b[i][j-1]=='R';
      |       ~~~~~~~~~^~~~~
foo.cc:37:16: warning: statement has no effect [-Wunused-value]
   37 |       b[i][j+1]=='R';
      |       ~~~~~~~~~^~~~~
foo.cc:42:16: warning: statement has no effect [-Wunused-value]
   42 |       b[i-1][j]=='S';
      |       ~~~~~~~~~^~~~~
foo.cc:44:16: warning: statement has no effect [-Wunused-value]
   44 |       b[i+1][j]=='S';
      |       ~~~~~~~~~^~~~~
foo.cc:46:16: warning: statement has no effect [-Wunused-value]
   46 |       b[i][j-1]=='S';
      |       ~~~~~~~~~^~~~~
foo.cc:48:16: warning: statement has no effect [-Wunused-value]
   48 |       b[i][j+1]=='S';
      |       ~~~~~~~~~^~~~~
foo.cc:53:16: warning: statement has no effect [-Wunused-value]
   53 |       b[i-1][j]=='P';
      |       ~~~~~~~~~^~~~~
foo.cc:55:16: warning: statement has no effect [-Wunused-value]
   55 |       b[i+1][j]=='P';
      |       ~~~~~~~~~^~~~~
foo.cc:57:16: warning: statement has no effect [-Wunused-value]
   57 |       b[i][j-1]=='P';
      |       ~~~~~~~~~^~~~~
foo.cc:59:16: warning: statement has no effect [-Wunused-value]
   59 |       b[i][j+1]=='P';
      |       ~~~~~~~~~^~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read S, expect R. 4ms 384.0 KiB
#2 Wrong Answer Read R, expect S. 2ms 384.0 KiB
#3 Wrong Answer Read P, expect R. 2ms 384.0 KiB
#4 Wrong Answer Read R, expect P. 4ms 512.0 KiB

信息

递交者
类型
递交
题目
P1097 猜拳游戏(3)
语言
C++
递交时间
2022-07-17 11:59:12
评测时间
2022-07-17 11:59:12
评测机
分数
0
总耗时
13ms
峰值内存
512.0 KiB