Problem pythonlist
User rachel9teh
Submission Time 2025-06-18 09:54:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:16:9: error: ‘else’ without a previous ‘if’
16 | else if (I == 2) {
| ^~~~
pythonlist.cpp:16:18: error: ‘I’ was not declared in this scope
16 | else if (I == 2) {
| ^
pythonlist.cpp:19:4: error: expected ‘}’ before ‘else’
19 | else {
| ^~~~
pythonlist.cpp:17:29: note: to match this ‘{’
17 | if (dq.empty()) {
| ^
pythonlist.cpp: At global scope:
pythonlist.cpp:27:1: error: expected declaration before ‘}’ token
27 | }
| ^