Problem runway
User wtnetlegend
Submission Time 2026-03-10 13:33:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

runway.cpp: In function ‘ll bfs01(ll, ll)’:
runway.cpp:22:36: error: ‘adj’ was not declared in this scope
22 | for(auto &[v, w] : adj[u]){
| ^~~
runway.cpp:26:74: error: no matching function for call to ‘std::deque<std::pair<long long int, long long int> >::push_back(<brace-enclosed initializer list>)’
26 | if (realw == 1) dq.push_back({v, dist[v]});
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from runway.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1569:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int>