Problem judgequeue
User IanGohYifeng
Submission Time 2026-08-02 12:47:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

judgequeue.cpp: In function ‘void init(int, int)’:
judgequeue.cpp:2:5: error: ‘l’ was not declared in this scope
2 | l.clear();
| ^
judgequeue.cpp: In function ‘void push_front(int)’:
judgequeue.cpp:7:5: error: ‘l’ was not declared in this scope
7 | l.push_front(subID);
| ^
judgequeue.cpp:8:5: error: ‘arr’ was not declared in this scope
8 | arr[subID] = l.begin();
| ^~~
judgequeue.cpp: In function ‘void push_back(int)’:
judgequeue.cpp:12:5: error: ‘l’ was not declared in this scope
12 | l.push_back(subID);
| ^
judgequeue.cpp:13:5: error: ‘arr’ was not declared in this scope
13 | arr[subID] = prev(l.end());
| ^~~
judgequeue.cpp:13:18: error: ‘prev’ was not declared in this scope
13 | arr[subID] = prev(l.end());
| ^~~~
judgequeue.cpp: In function ‘void insert_before(int, int)’:
judgequeue.cpp:17:5: error: ‘