Problem judgequeue
User pythonPerfectionist
Submission Time 2023-08-12 20:28:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

judgequeue.cpp: In function ‘void init(int, int)’:
judgequeue.cpp:7:3: error: ‘list’ was not declared in this scope
7 | list <int>q;
| ^~~~
judgequeue.cpp:3:1: note: ‘std::list’ is defined in header ‘<list>’; did you forget to ‘#include <list>’?
2 | #include <iostream>
+++ |+#include <list>
3 | using namespace std;
judgequeue.cpp:7:9: error: expected primary-expression before ‘int’
7 | list <int>q;
| ^~~
judgequeue.cpp:8:3: error: ‘vector’ was not declared in this scope
8 | vector<list<int>::iterator> locs;
| ^~~~~~
judgequeue.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <iostream>
+++ |+#include <vector>
3 | using namespace std;
judgequeue.cpp:8:15: error: expected primary-expression before ‘int’
8 | vector<list<