Problem pythonlist
User god
Submission Time 2025-06-18 09:33:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:16:18: error: expected unqualified-id before ‘.’ token
16 | deque.push_back(x[2]);
| ^
pythonlist.cpp:17:24: error: expected unqualified-id before ‘.’ token
17 | } else if(deque.empty()) {
| ^
pythonlist.cpp:20:26: error: missing template arguments before ‘.’ token
20 | cout << deque.back() << "\n";
| ^
pythonlist.cpp:21:9: error: expected unqualified-id before ‘.’ token
21 | deque.pop_back();
| ^
pythonlist.cpp: At global scope:
pythonlist.cpp:25:5: error: expected unqualified-id before ‘return’
25 | return 0;
| ^~~~~~
pythonlist.cpp:26:1: error: expected declaration before ‘}’ token
26 | }
| ^