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)提供评测服务