Problem pythonlist
User Nayaa2403
Submission Time 2025-06-18 09:27:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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: ‘list’ was not declared in this scope
13 | list.push(x);
| ^~~~
pythonlist.cpp:2:1: note: ‘std::list’ is defined in header ‘<list>’; did you forget to ‘#include <list>’?
1 | #include <iostream>
+++ |+#include <list>
2 | using namespace std;
pythonlist.cpp:16:7: error: ‘list’ was not declared in this scope
16 | if (list.size()=0) {
| ^~~~
pythonlist.cpp:16:7: