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

Compile Error

judgequeue.cpp:7:1: error: expected initializer before ‘void’
7 | void init (int X, int N) {
| ^~~~
judgequeue.cpp: In function ‘void push_front(int)’:
judgequeue.cpp:14:5: error: ‘arr’ was not declared in this scope
14 | arr[subID] = l.begin();
| ^~~
judgequeue.cpp: In function ‘void push_back(int)’:
judgequeue.cpp:19:5: error: ‘arr’ was not declared in this scope
19 | arr[subID] = prev(l.end());
| ^~~
judgequeue.cpp: In function ‘void insert_before(int, int)’:
judgequeue.cpp:23:5: error: ‘arr’ was not declared in this scope
23 | arr[subID] = l.insert(arr[ref], subID);
| ^~~
judgequeue.cpp: In function ‘void insert_after(int, int)’:
judgequeue.cpp:27:15: error: ‘arr’ was not declared in this scope
27 | auto it = arr[ref];
| ^~~
judgequeue.cpp: In function ‘int sub_before(int)’:
judgequeue.cpp:42:15: error: ‘arr’ was not declared in this sc