Problem binaryroads
User Pyrros
Submission Time 2024-06-20 16:06:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binaryroads.cpp: In function ‘int dijkstra(int, int, std::vector<bool>, std::vector<bool>, std::vector<int>, std::vector<int>)’:
binaryroads.cpp:61:4: error: ‘dist_dd’ was not declared in this scope; did you mean ‘dist_odd’?
61 | dist_dd[end] = dist_even[s] + 1;
| ^~~~~~~
| dist_odd
binaryroads.cpp:63:38: error: no matching function for call to ‘std::priority_queue<std::pair<int, std::pair<int, int> >, std::vector<std::pair<int, std::pair<int, int> > >, std::greater<std::pair<int, std::pair<int, int> > > >::push(<brace-enclosed initializer list>)’
63 | pq.push({dist_dd[end], {end, bin}});
| ^
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:627:7: