Problem | park |
---|---|
User | justin271828 |
Submission Time | 2025-02-21 10:08:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
park.cpp: In function ‘int main()’:
park.cpp:127:19: error: no matching function for call to ‘std::queue<std::pair<int, long long int> >::push(std::set<std::pair<int, long long int> >::iterator&)’
127 | queue.push(it);
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from park.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, long long int>; _Sequence = std::deque<std::pair<int, long long int>, std::allocator<std::pair<int, long long int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, long long int>]’
259 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:259:30: note: no known conversion for argument