Problem drones
User hwy
Submission Time 2023-06-21 17:51:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

drones.cpp: In function ‘void dfs(int)’:
drones.cpp:10:17: error: cannot convert ‘std::vector<std::vector<int> >’ to ‘int’
10 | dfs(graph, visited, neighbor);
| ^~~~~
| |
| std::vector<std::vector<int> >
drones.cpp:6:14: note: initializing argument 1 of ‘void dfs(int)’
6 | void dfs(int node) {
| ~~~~^~~~
drones.cpp: In function ‘int main()’:
drones.cpp:44:13: error: cannot convert ‘std::vector<std::vector<int> >’ to ‘int’
44 | dfs(graph, visited, x);
| ^~~~~
| |
| std::vector<std::vector<int> >
drones.cpp:6:14: note: initializing argument 1 of ‘void dfs(int)’
6 | void dfs(int node) {
| ~~~~^~~~