I am getting error
prog.cpp: In lambda function:
prog.cpp:118:28: error: use of ‘dfs’ before deduction of ‘auto’
118 | for(ll it: nde[i]) dfs(it,fren[i]);
In this code , ll means long long, nde[i] is a vector of int
auto dfs = [&](int i,int x)->void{
fren[i]+=x;
for(ll it: nde[i]) dfs(it,fren[i]);
};
dfs(0,0);
Writing a blog in codeforces for first time