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

Compile Error

pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:6:1: error: ‘list’ was not declared in this scope
6 | list<int> dq;
| ^~~~
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:6:6: error: expected primary-expression before ‘int’
6 | list<int> dq;
| ^~~
pythonlist.cpp:25:1: error: expected ‘}’ at end of input
25 | }
| ^
pythonlist.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^