Problem judgequeue
User AshwinJoy
Submission Time 2025-08-23 18:45:43
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> judgeq;
| ^~~~
judgequeue.cpp:5:1: error: ‘vector’ does not name a type
5 | vector<list<int>::iterator> lookup;
| ^~~~~~
judgequeue.cpp: In function ‘void init(int, int)’:
judgequeue.cpp:9:5: error: ‘lookup’ was not declared in this scope
9 | lookup.assign(N, judgeq.end());
| ^~~~~~
judgequeue.cpp:9:22: error: ‘judgeq’ was not declared in this scope
9 | lookup.assign(N, judgeq.end());
| ^~~~~~
judgequeue.cpp: In function ‘void push_front(int)’:
judgequeue.cpp:14:5: error: ‘judgeq’ was not declared in this scope
14 | judgeq.push_front(subID);
| ^~~~~~
judgequeue.cpp:15:5: error: ‘lookup’ was not declared in this scope
15 | lookup[subID-1] = judgeq.begin();
| ^~~~~~
judgequeue.cpp: In function ‘void push_back(int)’:
judgequeue.cpp:18:5