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

Compile Error

judgequeue.cpp: In function ‘void push_front(int)’:
judgequeue.cpp:14:5: error: ‘q’ was not declared in this scope
14 | q.push_front(subID);
| ^
judgequeue.cpp:15:5: error: ‘locs’ was not declared in this scope
15 | locs[subID-1] = q.begin();
| ^~~~
judgequeue.cpp: In function ‘void push_back(int)’:
judgequeue.cpp:18:5: error: ‘q’ was not declared in this scope
18 | q.push_back(subID);
| ^
judgequeue.cpp:19:5: error: ‘locs’ was not declared in this scope
19 | locs[subID-1] = --q.end();
| ^~~~
judgequeue.cpp: In function ‘void insert_before(int, int)’:
judgequeue.cpp:22:15: error: ‘locs’ was not declared in this scope
22 | auto it = locs[ref-1];
| ^~~~
judgequeue.cpp:23:21: error: ‘q’ was not declared in this scope
23 | locs[subID-1] = q.insert(it,subID);
| ^
judgequeue.cpp: In function ‘void insert