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

Compile Error

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