Problem | pythonlist |
---|---|
User | n1k1trh |
Submission Time | 2025-08-15 21:38:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pythonlist.cpp: In function ‘int32_t main()’:
pythonlist.cpp:24:26: error: ‘deque’ was not declared in this scope
24 | int q; cin >> q; deque<int> dq;
| ^~~~~
pythonlist.cpp:5:1: note: ‘std::deque’ is defined in header ‘<deque>’; did you forget to ‘#include <deque>’?
4 | #include <map>
+++ |+#include <deque>
5 | using namespace std;
pythonlist.cpp:6:17: error: expected primary-expression before ‘long’
6 | #define int long long
| ^~~~
pythonlist.cpp:24:32: note: in expansion of macro ‘int’
24 | int q; cin >> q; deque<int> dq;
| ^~~
pythonlist.cpp:26:59: error: ‘dq’ was not declared in this scope; did you mean ‘q’?
26 | int a; cin >> a; if(a == 1) {int b; cin >> b; dq.pb(b);}
|