| Problem | binaryroads |
|---|---|
| User | chickengoat |
| Submission Time | 2026-05-16 09:57:19 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binaryroads.cpp: In function ‘int main()’:
binaryroads.cpp:11:3: error: ‘adj’ was not declared in this scope
11 | adj[a].push_back({v,b});
| ^~~
binaryroads.cpp:28:16: error: ‘adj’ was not declared in this scope
28 | for (auto it:adj[nd.first]) {
| ^~~
binaryroads.cpp:32:34: error: no matching function for call to ‘std::queue<std::pair<long long int, bool> >::push(<brace-enclosed initializer list>)’
32 | q.push({it.second,!nd.second});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from binaryroads.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:259:7: note: candidate: ‘void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<long long int, bool>; _Sequence = std::deque<std::pair<long long int, bool>, std::all