Problem | pythonlist |
---|---|
User | Nayaa2403 |
Submission Time | 2025-06-18 09:26:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:6:1: error: ‘deque’ was not declared in this scope
6 | deque<int> list;
| ^~~~~
pythonlist.cpp:2:1: note: ‘std::deque’ is defined in header ‘<deque>’; did you forget to ‘#include <deque>’?
1 | #include <iostream>
+++ |+#include <deque>
2 | using namespace std;
pythonlist.cpp:6:7: error: expected primary-expression before ‘int’
6 | deque<int> list;
| ^~~
pythonlist.cpp:13:3: error: ‘dq’ was not declared in this scope; did you mean ‘q’?
13 | dq.push(x);
| ^~
| q
pythonlist.cpp:16:7: error: ‘dq’ was not declared in this scope; did you mean ‘q’?
16 | if (dq.size()=0) {
| ^~
| q
pythonlist.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
pythonlist.cpp:15:11: note: to match this ‘{’
15 | if (n=2) {
| ^
py