sightseeing.cpp: In function 'std::vector<long int> dijkstra(std::vector<std::vector<std::pair<long int, long int> > >&)':
sightseeing.cpp:37:14: error: 'numeric_limits' was not declared in this scope
pq.push({numeric_limits<int>::max(), 0});
^~~~~~~~~~~~~~
sightseeing.cpp:37:32: error: expected primary-expression before '>' token
pq.push({numeric_limits<int>::max(), 0});
^
sightseeing.cpp:37:39: error: no matching function for call to 'max()'
pq.push({numeric_limits<int>::max(), 0});
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from sightseeing.cpp:9:
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^~~
/usr/include/c++/7/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
sightseeing.cpp:37:39: note: candidate expects 2 arguments, 0 provided
pq.push({numeric_limits<int>::max(), 0});
^
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
from /usr/include/c++/7/ios:40,
from /usr/include/c++/7/ostream:38,
from /usr/include/c++/7/iostream:39,
from sightseeing.cpp:9:
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/7/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
sightseeing.cpp:37:39: note: candidate expects 3 arguments, 0 provided
pq.push({numeric_limits<int>::max(), 0});
^
sightseeing.cpp:37:44: error: no matching function for call to 'std::priority_queue<std::pair<long int, long int> >::push(<brace-enclosed initializer list>)'
pq.push({numeric_limits<int>::max(), 0});
^
In file included from /usr/include/c++/7/queue:64:0,
from sightseeing.cpp:11:
/usr/include/c++/7/bits/stl_queue.h:595:7: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<long int, long int>; _Sequence = std::vector<std::pair<long int, long int> >; _Compare = std::less<std::pair<long int, long int> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<long int, long int>]
push(const value_type& __x)
^~~~
/usr/include/c++/7/bits/stl_queue.h:595:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<long int, long int>&}'
/usr/include/c++/7/bits/stl_queue.h:603:7: note: candidate: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::pair<long int, long int>; _Sequence = std::vector<std::pair<long int, long int> >; _Compare = std::less<std::pair<long int, long int> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<long int, long int>]
push(value_type&& __x)
^~~~
/usr/include/c++/7/bits/stl_queue.h:603:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::pair<long int, long int> >::value_type&& {aka std::pair<long int, long int>&&}'