Problem potatoqueue
User IanGohYifeng
Submission Time 2026-08-28 21:23:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatoqueue.cpp: In function ‘int query(int)’:
potatoqueue.cpp:55:14: error: expected initializer before ‘visible’
55 | int last visible = find(parent[current]);
| ^~~~~~~
potatoqueue.cpp:57:8: error: ‘last_visible’ was not declared in this scope
57 | if(last_visible == 0){
| ^~~~~~~~~~~~
potatoqueue.cpp:60:9: error: ‘last_visible’ was not declared in this scope
60 | return last_visible - front_person;
| ^~~~~~~~~~~~