Problem hunter
User LCJLY
Submission Time 2023-12-15 18:25:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hunter.cpp:4:1: error: ‘vector’ does not name a type
4 | vector<int>adj[10005];
| ^~~~~~
hunter.cpp: In function ‘void dfs(int, int)’:
hunter.cpp:11:14: error: ‘adj’ was not declared in this scope
11 | for(auto it:adj[index]){
| ^~~
hunter.cpp: In function ‘void hunter(int, int, int, int, std::vector<int>, std::vector<int>)’:
hunter.cpp:20:23: error: expected ‘;’ before ‘)’ token
20 | for(int x=0;x<2*N+M-1){
| ^
| ;
hunter.cpp:21:3: error: ‘adj’ was not declared in this scope
21 | adj[A[x]].push_back(B[x]);
| ^~~
hunter.cpp:27:2: error: ‘vector’ was not declared in this scope
27 | vector<int>v;
| ^~~~~~
hunter.cpp:27:2: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/