Problem eta
User Sans12345
Submission Time 2023-12-22 10:37:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eta.cpp:3:1: error: ‘vector’ does not name a type
3 | vector<vector<int>> children, list;
| ^~~~~~
eta.cpp:4:1: error: ‘vector’ does not name a type
4 | vector<int> in, out, depth;
| ^~~~~~
eta.cpp: In function ‘void dfs(int)’:
eta.cpp:8:5: error: ‘in’ was not declared in this scope; did you mean ‘yn’?
8 | in[u] = timer++;
| ^~
| yn
eta.cpp:9:5: error: ‘list’ was not declared in this scope
9 | list[depth[u]].push_back(in[u]);
| ^~~~
eta.cpp:9:5: note: suggested alternatives:
In file included from /usr/include/c++/9/list:63,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:79,
from eta.cpp:1:
/usr/include/c++/9/bits/stl_list.h:552:11: note: ‘std::__cxx11::list’
552 | class list : protected _List_base<_Tp, _Alloc>
| ^~~~
In file included from /usr/include/x86_64-linux-gnu/c+