Problem | runway |
---|---|
User | Rolo |
Submission Time | 2024-04-11 21:55:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
runway.cpp: In function ‘int main()’:
runway.cpp:40:38: error: no matching function for call to ‘std::deque<int>::push_front(std::pair<int, int>&)’
40 | }else pq.push_front(u);
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from runway.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1532:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::push_front(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::deque<_Tp, _Alloc>::value_type = int]’
1532 | push_front(const value_type& __x)
| ^~~~~~~~~~
/usr/include/c++/9/bits/stl_deque.h:1532:36: note: no known conversion for argument 1 from ‘std::pair<int, int>’ to ‘const value_type&’ {aka ‘const int&’}
1532 | push_front(const value_type& __x)
| ~~~~~~