Problem | dijkstra |
---|---|
User | kxd |
Submission Time | 2024-09-06 23:18:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:34:20: error: no matching function for call to ‘make_pair(<brace-enclosed initializer list>)’
34 | G[x].pb(m_p({y,d}));
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from dijkstra.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:524:5: note: candidate: ‘template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)’
524 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_pair.h:524:5: note: template argument deduction/substitution failed:
dijkstra.cpp:34:20: note: candid