Problem pythonlist
User Roucy
Submission Time 2025-06-18 10:11:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:9:13: error: expected primary-expression before ‘]’ token
9 | cout << dq[]
| ^
pythonlist.cpp:11:8: error: expected unqualified-id before string constant
11 | int "Empty"
| ^~~~~~~
pythonlist.cpp:13:14: error: ‘Empty’ was not declared in this scope
13 | dq.pop_back(Empty);
| ^~~~~
pythonlist.cpp:15:5: error: expected ‘(’ before ‘else’
15 | if else
| ^~~~
| (
pythonlist.cpp:17:16: error: ‘x’ was not declared in this scope
17 | dq.push_back(x);
| ^