Problem subgraphs
User Henries
Submission Time 2024-11-08 16:31:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp: In function ‘void dfs(long long int)’:
subgraphs.cpp:18:7: error: reference to ‘list’ is ambiguous
18 | if (!list[i].empty()){
| ^~~~
In file included from /usr/include/c++/9/list:63,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:79,
from subgraphs.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>
| ^~~~
subgraphs.cpp:6:27: note: ‘std::vector<std::vector<long long int> > list’
6 | vector<vector<long long>> list;
| ^~~~
subgraphs.cpp:19:19: error: reference to ‘list’ is ambiguous
19 | for(int z = 0;z<list[i].size();z++){
| ^~~~
In file included from /usr/include/c++/9/list:63,