| Problem | dijkstra |
|---|---|
| User | naivecyans |
| Submission Time | 2025-12-26 16:23:29 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:14:10: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘struct std::pair<long long int, long long int>’} has no member named ‘push_back’
14 | adj[a].push_back({w,b});
| ^~~~~~~~~
dijkstra.cpp:15:10: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘struct std::pair<long long int, long long int>’} has no member named ‘push_back’
15 | adj[b].push_back({w,a}); //undirected
| ^~~~~~~~~
dijkstra.cpp:30:23: error: no matching function for call to ‘begin(std::pair<long long int, long long int>&)’
30 | for(auto it:adj[node]){
| ^
In file included from /usr/include/c++/9/bi