Problem ccs
User xiaoqiwang04
Submission Time 2023-06-12 22:05:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘void sleep(int, int)’:
ccs.cpp:20:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
20 | if (b == "WAKE") {
| ^~~~~~
ccs.cpp:24:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
24 | } else if (b == "SLEEP") {
| ^~~~~~~
ccs.cpp:30:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
30 | } else if (b == "TRANSMIT") {
| ^~~~~~~~~~