speedrun.cpp:1:1: error: 'vector' does not name a type
1 | vector<int> adj[1000];
| ^~~~~~
speedrun.cpp: In function 'void dfs(int, int)':
speedrun.cpp:10:3: error: 'setHint' was not declared in this scope
10 | setHint(x+1, pwr, tmp%2);
| ^~~~~~~
speedrun.cpp:14:15: error: 'adj' was not declared in this scope
14 | for(auto i : adj[x]) if(i != p) dfs(i, x);
| ^~~
speedrun.cpp: In function 'void assignHints(int, int, int*, int*)':
speedrun.cpp:18:2: error: 'setHintLen' was not declared in this scope
18 | setHintLen(20);
| ^~~~~~~~~~
speedrun.cpp:20:3: error: 'adj' was not declared in this scope
20 | adj[A[i]-1].push_back(B[i]-1);
| ^~~
speedrun.cpp:29:4: error: 'setHint' was not declared in this scope
29 | setHint(i+1, pwr, tmp%2);
| ^~~~~~~
speedrun.cpp: In function 'void speedrun(int, int, int)':
speedrun.cpp:42:40: error: 'getHint' was not declared in this scope
42 | for(int i = 11; i <= 20; i++) nxt += getHint(i) * (1<<(i-11));
| ^~~~~~~
speedrun.cpp:43:10: error: 'goTo' was not declared in this scope
43 | while(!goTo(nxt+1)) {
| ^~~~
speedrun.cpp:45:38: error: 'getHint' was not declared in this scope
45 | for(int i = 1; i <= 10; i++) p += getHint(i) * (1<<(i-1));
| ^~~~~~~