Problem subgraphs
User SheepHeads
Submission Time 2024-01-11 20:22:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:49:11: error: invalid initialization of reference of type ‘std::vector<long long int> (&)[]’ from expression of type ‘std::vector<long long int> [node]’
49 | bfs(i, adjList, visited);
| ^~~~~~~
subgraphs.cpp:5:34: note: in passing argument 2 of ‘void bfs(long long int, std::vector<long long int> (&)[], long long int (&)[])’
5 | void bfs(int node, vector<int> (&adjList)[], int (&visited)[]){
| ~~~~~~~~~~~~~~^~~~~~~~~~