Problem potatoqueue
User TheGhostKing
Submission Time 2023-06-03 18:56:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatoqueue.cpp: In function ‘void join(int)’:
potatoqueue.cpp:13:5: error: ‘q’ was not declared in this scope
13 | q.push(H);
| ^
potatoqueue.cpp:14:5: error: ‘s’ was not declared in this scope
14 | s.push(H);
| ^
potatoqueue.cpp:15:5: error: ‘umap’ was not declared in this scope
15 | umap[H]++;
| ^~~~
potatoqueue.cpp: In function ‘void serve()’:
potatoqueue.cpp:19:23: error: ‘q’ was not declared in this scope
19 | int frontPerson = q.front();
| ^
potatoqueue.cpp:21:5: error: ‘umap’ was not declared in this scope
21 | umap[frontPerson]--;
| ^~~~
potatoqueue.cpp:24:5: error: ‘s’ was not declared in this scope
24 | s.pop();
| ^
potatoqueue.cpp: In function ‘int query(int)’:
potatoqueue.cpp:28:9: error: ‘umap’ was not declared in this scope
28 | if (umap.empty())
| ^~~~
potatoqu