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

Compile Error

potatoqueue.cpp:3:1: error: ‘stack’ does not name a type; did you mean ‘obstack’?
3 | stack<int> s;
| ^~~~~
| obstack
potatoqueue.cpp:4:1: error: ‘queue’ does not name a type
4 | queue<int> q;
| ^~~~~
potatoqueue.cpp:5:1: error: ‘unordered_map’ does not name a type
5 | unordered_map<int, int> umap;
| ^~~~~~~~~~~~~
potatoqueue.cpp: In function ‘void init()’:
potatoqueue.cpp:8:13: error: ‘s’ was not declared in this scope
8 | while (!s.empty())
| ^
potatoqueue.cpp:10:13: error: ‘q’ was not declared in this scope
10 | while (!q.empty())
| ^
potatoqueue.cpp:12:5: error: ‘umap’ was not declared in this scope
12 | umap.clear();
| ^~~~
potatoqueue.cpp: In function ‘void join(int)’:
potatoqueue.cpp:16:5: error: ‘q’ was not declared in this scope
16 | q.push(H);
| ^
potatoqueue.cpp:17:5: