Problem graphoverflow
User PlayVoltz
Submission Time 2024-03-03 21:30:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

graphoverflow.cpp: In function ‘long long int dijk(long long int, long long int)’:
graphoverflow.cpp:33:33: error: no matching function for call to ‘std::vector<std::pair<long long int, long long int> >::vector(long long int, long long int)’
33 | vector<pii> dj(n+1, LLONG_MAX/2);
| ^
In file included from /usr/include/c++/9/vector:67,
from graphoverflow.cpp:3:
/usr/include/c++/9/bits/stl_vector.h:650:2: note: candidate: ‘template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)’
650 | vector(_InputIterator __first, _InputIterator __last,
| ^~~~~~
/usr/include/c++/9/bits/stl_vector.h:650:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/bits/stl_algobase.h:65,
from /usr/include/c++/9/bits/char_traits.h:39,