race.cpp:1:16: error: 'll' has not been declared
1 | void dfs(int a,ll cost,int d,int p,bool add,unordered_map<int,int> &m,unordered_map<int,bool> &avem)
| ^~
race.cpp:1:45: error: 'unordered_map' has not been declared
1 | void dfs(int a,ll cost,int d,int p,bool add,unordered_map<int,int> &m,unordered_map<int,bool> &avem)
| ^~~~~~~~~~~~~
race.cpp:1:58: error: expected ',' or '...' before '<' token
1 | void dfs(int a,ll cost,int d,int p,bool add,unordered_map<int,int> &m,unordered_map<int,bool> &avem)
| ^
race.cpp: In function 'void dfs(int, int, int, int, bool, int)':
race.cpp:3:12: error: 'k' was not declared in this scope
3 | if(d > k) return;
| ^
race.cpp:6:23: error: 'avem' was not declared in this scope
6 | bool &u = avem[cost];
| ^~~~
race.cpp:7:28: error: 'm' was not declared in this scope
7 | if(!u) u = 1 , m[cost] = d;
| ^
race.cpp:10:30: error: 'm' was not declared in this scope
10 | int &h = m[cost];
| ^
race.cpp:11:25: error: 'min' was not declared in this scope
11 | h = min(h,d);
| ^~~
race.cpp:17:23: error: 'avem' was not declared in this scope
17 | bool &u = avem[k-cost];
| ^~~~
race.cpp:17:28: error: 'k' was not declared in this scope
17 | bool &u = avem[k-cost];
| ^
race.cpp:18:19: error: 'ans' was not declared in this scope
18 | if(u) ans = min(ans,m[k-cost]+d);
| ^~~
race.cpp:18:33: error: 'm' was not declared in this scope
18 | if(u) ans = min(ans,m[k-cost]+d);
| ^
race.cpp:18:25: error: 'min' was not declared in this scope
18 | if(u) ans = min(ans,m[k-cost]+d);
| ^~~
race.cpp:21:20: error: 'fii' was not declared in this scope
21 | for(auto &it : fii[a])
| ^~~
race.cpp:22:13: error: 'scos' was not declared in this scope
22 | if(!scos[it.fi] && it.fi != p) dfs(it.fi,cost+it.se,d+1,a,add,m,avem);
| ^~~~
race.cpp:22:71: error: 'm' was not declared in this scope
22 | if(!scos[it.fi] && it.fi != p) dfs(it.fi,cost+it.se,d+1,a,add,m,avem);
| ^
race.cpp:22:73: error: 'avem' was not declared in this scope
22 | if(!scos[it.fi] && it.fi != p) dfs(it.fi,cost+it.se,d+1,a,add,m,avem);
| ^~~~
race.cpp:23:5: error: 'mx' was not declared in this scope
23 | mx = max(mx,d);
| ^~
race.cpp:23:10: error: 'max' was not declared in this scope
23 | mx = max(mx,d);
| ^~~