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

Compile Error

subgraphs.cpp: In function ‘void dfs(long long int)’:
subgraphs.cpp:20:18: error: cannot convert ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> >, std::vector<long long int> >::value_type’ {aka ‘std::vector<long long int>’} to ‘long long int’
20 | dfs(adjlist[z]);
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> >, std::vector<long long int> >::value_type {aka std::vector<long long int>}
subgraphs.cpp:16:20: note: initializing argument 1 of ‘void dfs(long long int)’
16 | void dfs(long long i){
| ~~~~~~~~~~^