Problem drones
User hwy
Submission Time 2023-06-22 20:21:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

drones.cpp: In function ‘void dfs(int)’:
drones.cpp:15:23: error: ‘neighbor’ was not declared in this scope; did you mean ‘neighbour’?
15 | if (!visited[neighbor]) {
| ^~~~~~~~
| neighbour
drones.cpp: In function ‘int main()’:
drones.cpp:27:12: error: ‘class std::vector<int>’ has no member named ‘reisze’; did you mean ‘resize’?
27 | reachable.reisze(N+1, 0);
| ^~~~~~
| resize