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

Compile Error

eta.cpp: In function ‘void dfs(int)’:
eta.cpp:10:5: error: reference to ‘list’ is ambiguous
10 | list[depth[u]].push_back(in[u]);
| ^~~~
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: candidates are: ‘template<class _Tp, class _Alloc> class std::__cxx11::list’
552 | class list : protected _List_base<_Tp, _Alloc>
| ^~~~
eta.cpp:4:31: note: ‘std::vector<std::vector<int> > list’
4 | vector<vector<int>> children, list;
| ^~~~
eta.cpp: In function ‘int main()’:
eta.cpp:21:16: error: reference to ‘list’ is ambiguous
21 | children = list = vector<vector<int>>(N);
| ^~~~
In file included from /usr/include/c++/9/list:6