Problem subgraphs
User angelahaha
Submission Time 2023-11-11 08:33:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp: In function ‘void dfs(int, std::vector<bool>&, std::vector<std::vector<int> >&)’:
subgraphs.cpp:17:17: error: too few arguments to function ‘void dfs(int, std::vector<bool>&, std::vector<std::vector<int> >&)’
17 | dfs (i);
| ^
subgraphs.cpp:9:8: note: declared here
9 | void dfs( int x, vector<bool> &visited, vector<vector<int>> &adjList){
| ^~~
subgraphs.cpp: At global scope:
subgraphs.cpp:21:29: error: ‘x’ has not been declared
21 | int countsubgraphs (int N, x,vector <vector<int>> adjlist){
| ^
subgraphs.cpp: In function ‘int countsubgraphs(int, int, std::vector<std::vector<int> >)’:
subgraphs.cpp:27:24: error: ‘x’ was not declared in this scope
27 | if (!visited [x]);
| ^
subgraphs.cpp:29:18: error: ‘x’ was not decla