speedrun.cpp: In function 'void assignHints(int, int, int*, int*)':
speedrun.cpp:3:5: error: 'vector' was not declared in this scope
3 | vector<vector<int>>g(n+1);
| ^~~~~~
speedrun.cpp:3:19: error: expected primary-expression before 'int'
3 | vector<vector<int>>g(n+1);
| ^~~
speedrun.cpp:4:5: error: 'setHintLen' was not declared in this scope
4 | setHintLen(20);
| ^~~~~~~~~~
speedrun.cpp:7:9: error: 'g' was not declared in this scope
7 | g[a[i]].pb(b[i]);
| ^
speedrun.cpp:10:12: error: expected primary-expression before 'int'
10 | vector<int>nodes;
| ^~~
speedrun.cpp:11:5: error: 'function' was not declared in this scope; did you mean 'union'?
11 | function<void(int,int)>dfs=[&](int x,int tt)
| ^~~~~~~~
| union
speedrun.cpp:11:26: error: expression list treated as compound expression in functional cast [-fpermissive]
11 | function<void(int,int)>dfs=[&](int x,int tt)
| ^
speedrun.cpp:11:14: error: expected primary-expression before 'void'
11 | function<void(int,int)>dfs=[&](int x,int tt)
| ^~~~
speedrun.cpp:19:5: error: 'dfs' was not declared in this scope
19 | dfs(1,0);
| ^~~
speedrun.cpp:20:5: error: 'nodes' was not declared in this scope
20 | nodes.pb(0);
| ^~~~~
speedrun.cpp:25:13: error: 'setHint' was not declared in this scope
25 | setHint(nodes[i-1],j+10,nodes[i]&(1<<j)>0);
| ^~~~~~~
speedrun.cpp: In lambda function:
speedrun.cpp:36:16: error: 'getHint' was not declared in this scope
36 | if(getHint(i))
| ^~~~~~~
speedrun.cpp: In lambda function:
speedrun.cpp:48:16: error: 'getHint' was not declared in this scope
48 | if(getHint(i+10))
| ^~~~~~~
speedrun.cpp: In function 'void speedrun(int, int, int)':
speedrun.cpp:58:9: error: 'goTo' was not declared in this scope
58 | goTo(x);
| ^~~~
speedrun.cpp:63:16: error: 'goTo' was not declared in this scope
63 | while(!goTo(urm))
| ^~~~