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

Compile Error

judgequeue.cpp:3:1: error: ‘list’ does not name a type
3 | list <int>q;
| ^~~~
judgequeue.cpp:4:1: error: ‘vector’ does not name a type
4 | vector<list<int>::iterator> locs;
| ^~~~~~
judgequeue.cpp: In function ‘void init(int, int)’:
judgequeue.cpp:7:3: error: ‘locs’ was not declared in this scope
7 | locs.assign(N,q.end());
| ^~~~
judgequeue.cpp:7:17: error: ‘q’ was not declared in this scope
7 | locs.assign(N,q.end());
| ^
judgequeue.cpp: In function ‘void push_front(int)’:
judgequeue.cpp:12:5: error: ‘q’ was not declared in this scope
12 | q.push_front(subID);
| ^
judgequeue.cpp:13:5: error: ‘locs’ was not declared in this scope
13 | locs[subID-1] = q.begin();
| ^~~~
judgequeue.cpp: In function ‘void push_back(int)’:
judgequeue.cpp:16:5: error: ‘q’ was not declared in this scope
16 | q.push_back(sub