Problem | railway |
---|---|
User | bribritt |
Submission Time | 2023-11-15 16:05:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
railway.cpp: In function ‘void dfs(int, int)’:
railway.cpp:11:16: error: ‘dist’ was not declared in this scope; did you mean ‘dst’?
11 | dst[i.first]=dist[x]+i.second;
| ^~~~
| dst
railway.cpp: In function ‘int main()’:
railway.cpp:31:21: error: no matching function for call to ‘std::vector<std::pair<int, int> >::emplace(int&, int&)’
31 | adj[a].emplace(b,c);
| ^
In file included from /usr/include/c++/9/vector:67,
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 /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from railway.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1245:2: note: candidate: ‘template<class ... _Args> std::vector<_Tp, _Alloc>::iterator std::vector<