Problem tickethandling
User blob
Submission Time 2023-12-13 10:29:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tickethandling.cpp: In function ‘int main()’:
tickethandling.cpp:19:58: error: ‘class std::queue<std::pair<int, int> >’ has no member named ‘top’; did you mean ‘pop’?
19 | while (!type2Tickets.empty() && type1Tickets.top().first > type2Tickets.top()) {
| ^~~
| pop
tickethandling.cpp:25:38: error: ‘class std::queue<std::pair<int, int> >’ has no member named ‘top’; did you mean ‘pop’?
25 | cout << type1Tickets.top().first << endl;
| ^~~
| pop