Problem | tickethandling |
---|---|
User | blob |
Submission Time | 2023-12-13 10:26:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
tickethandling.cpp: In function ‘int main()’:
tickethandling.cpp:18:34: error: ‘X’ was not declared in this scope
18 | } else if (type == 2 and X == 2) {
| ^
tickethandling.cpp:20:23: error: ‘Y’ was not declared in this scope
20 | tickets2.push({X, Y});
| ^
tickethandling.cpp:20:25: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)’
20 | tickets2.push({X, Y});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from tickethandling.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: ‘void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, st