0_0_39518233_28296.cpp: In function 'int main()':
0_0_39518233_28296.cpp:74:36: error: 'itn' was not declared in this scope; did you mean 'int'?
74 | std::function<void(itn)>dfs = [&](int i)
| ^~~
| int
0_0_39518233_28296.cpp:74:40: error: template argument 1 is invalid
74 | std::function<void(itn)>dfs = [&](int i)
| ^
0_0_39518233_28296.cpp: In lambda function:
0_0_39518233_28296.cpp:77:44: error: expression cannot be used as a function
77 | dfs(j), times[i] += times[j];
| ~~~^~~
0_0_39518233_28296.cpp: In function 'int main()':
0_0_39518233_28296.cpp:74:47: error: cannot convert 'main()::<lambda(int)>' to 'int' in initialization
74 | std::function<void(itn)>dfs = [&](int i)
| ^~~~~~~~~~
| |
| main()::<lambda(int)>
75 | {
| ~
76 | for (int j : tree[i])
| ~~~~~~~~~~~~~~~~~~~~~
77 | dfs(j), times[i] += times[j];
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
78 | };
| ~
0_0_39518233_28296.cpp:89:20: error: 'dfs' cannot be used as a function
89 | dfs(0);
| ~~~^~~
|