Wrong Answer

foo.cc:12:23: warning: multi-character character constant [-Wmultichar]
   12 |                 if(b=='Rock' && c=='Scissors')
      |                       ^~~~~~
foo.cc:12:36: warning: character constant too long for its type
   12 |                 if(b=='Rock' && c=='Scissors')
      |                                    ^~~~~~~~~~
foo.cc:16:23: warning: character constant too long for its type
   16 |                 if(b=='Scissors' && c=='Paper')
      |                       ^~~~~~~~~~
foo.cc:16:40: warning: character constant too long for its type
   16 |                 if(b=='Scissors' && c=='Paper')
      |                                        ^~~~~~~
foo.cc:20:23: warning: character constant too long for its type
   20 |                 if(b=='Paper' && c=='Rock')
      |                       ^~~~~~~
foo.cc:20:37: warning: multi-character character constant [-Wmultichar]
   20 |                 if(b=='Paper' && c=='Rock')
      |                                     ^~~~~~
foo.cc:24:23: warning: multi-character character constant [-Wmultichar]
   24 |                 if(b=='Rock' && c=='Paper')
      |                       ^~~~~~
foo.cc:24:36: warning: character constant too long for its type
   24 |                 if(b=='Rock' && c=='Paper')
      |                                    ^~~~~~~
foo.cc:28:23: warning: character constant too long for its type
   28 |                 if(b=='Paper' && c=='Scissors')
      |                       ^~~~~~~
foo.cc:28:37: warning: character constant too long for its type
   28 |                 if(b=='Paper' && c=='Scissors')
      |                                     ^~~~~~~~~~
foo.cc:32:23: warning: character constant too long for its type
   32 |                 if(b=='Scissors' && c=='Rock')
      |                       ^~~~~~~~~~
foo.cc:32:40: warning: multi-character character constant [-Wmultichar]
   32 |                 if(b=='Scissors' && c=='Rock')
      |                                        ^~~~~~
foo.cc: In function 'int main()':
foo.cc:10:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=]
   10 |                 scanf("%d%d",&b,&c);
      |                        ~^    ~~
      |                         |    |
      |                         int* char*
      |                        %hhd
foo.cc:10:27: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'char*' [-Wformat=]
   10 |                 scanf("%d%d",&b,&c);
      |                          ~^     ~~
      |                           |     |
      |                           int*  char*
      |                          %hhd
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 0a1 > P2 1a3,4 > P2 > P1 \ N 2ms 256.0 KiB
#2 Wrong Answer 0a1,4 > P1 > P1 > P2 > P1 1ms 328.0 KiB

信息

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