Problem hunter
User Shadow1
Submission Time 2024-12-23 23:21:57
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[5000];
| ^~~~~~
hunter.cpp:5:1: error: ‘vector’ does not name a type
5 | vector<int> leaves;
| ^~~~~~
hunter.cpp: In function ‘void dfs(int, int)’:
hunter.cpp:9:16: error: ‘adj’ was not declared in this scope
9 | for(auto &v : adj[u]) {
| ^~~
hunter.cpp:14:11: error: ‘leaves’ was not declared in this scope
14 | if(leaf) leaves.push_back(u);
| ^~~~~~
hunter.cpp: In function ‘void hunter(int, int, int, int, std::vector<int>, std::vector<int>)’:
hunter.cpp:18:19: error: ‘n’ was not declared in this scope
18 | for(int i=0; i<2*n+m; ++i) {
| ^
hunter.cpp:18:21: error: ‘m’ was not declared in this scope
18 | for(int i=0; i<2*n+m; ++i) {
| ^
hunter.cpp:19:3: error: ‘adj’ was not declared in this scope
19