Problem ccs
User AtomicAtomXD
Submission Time 2026-07-02 15:17:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:4:14: error: ‘else’ without a previous ‘if’
4 | #define elif else if
| ^~~~
ccs.cpp:19:9: note: in expansion of macro ‘elif’
19 | elif (com == "SLEEP"){
| ^~~~
ccs.cpp:19:15: error: ‘com’ was not declared in this scope; did you mean ‘cos’?
19 | elif (com == "SLEEP"){
| ^~~
| cos
ccs.cpp:28:40: error: continue statement not within a loop
28 | cout << "YES" << "\n"; continue;
| ^~~~~~~~
ccs.cpp:32:39: error: continue statement not within a loop
32 | cout << "NO" << "\n"; continue;
| ^~~~~~~~
ccs.cpp: At global scope:
ccs.cpp:37:1: error: expected declaration before ‘}’ token
37 | }
| ^