Problem potatoqueue
User probird69
Submission Time 2023-06-10 17:41:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatoqueue.cpp:2:1: error: ‘include’ does not name a type
2 | include <bits/stdc++.h>
| ^~~~~~~
potatoqueue.cpp:5:1: error: ‘deque’ does not name a type
5 | deque<pair<int,int>> q;
| ^~~~~
potatoqueue.cpp: In function ‘void join(int)’:
potatoqueue.cpp:13:9: error: ‘q’ was not declared in this scope
13 | if (q.empty() || H>q.back().first){
| ^
potatoqueue.cpp:18:5: error: ‘q’ was not declared in this scope
18 | q.push_back({H,m_ind});
| ^
potatoqueue.cpp: In function ‘void serve()’:
potatoqueue.cpp:22:5: error: ‘q’ was not declared in this scope
22 | q.pop_front();
| ^
potatoqueue.cpp: In function ‘int query(int)’:
potatoqueue.cpp:26:10: error: ‘q’ was not declared in this scope
26 | N -= q.at(N).second;
| ^