Problem playlist2
User PyAce
Submission Time 2026-01-22 17:20:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

playlist2.cpp: In function ‘int main()’:
playlist2.cpp:27:4: error: ‘else’ without a previous ‘if’
27 | }else if(cmd == "Play") {
| ^~~~
playlist2.cpp:27:12: error: ‘cmd’ was not declared in this scope
27 | }else if(cmd == "Play") {
| ^~~
playlist2.cpp:30:11: error: continue statement not within a loop
30 | continue;
| ^~~~~~~~
playlist2.cpp:37:11: error: continue statement not within a loop
37 | continue;
| ^~~~~~~~
playlist2.cpp: At global scope:
playlist2.cpp:42:1: error: expected declaration before ‘}’ token
42 | }
| ^