Problem | dijkstra |
---|---|
User | popperoni |
Submission Time | 2024-01-24 21:20:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:25:33: error: no matching function for call to ‘std::vector<std::pair<long long int, long long int> >::emplace_back(<brace-enclosed initializer list>)’
25 | adjlist[b].emplace_back({c, a});
| ^
In file included from /usr/include/c++/9/vector:72,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from dijkstra.cpp:2:
/usr/include/c++/9/bits/vector.tcc:109:7: note: candidate: ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {}; _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::reference = std::pair<long long int, long long