Problem subgraphs
User Johnnie
Submission Time 2023-06-25 11:45:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp: In function ‘void DFS(int, bool**, bool*)’:
subgraphs.cpp:13:22: error: ‘N’ was not declared in this scope
13 | for(int i = 0; i < N; ++i)
| ^
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:46:11: error: cannot convert ‘bool (*)[N]’ to ‘bool**’
46 | DFS(i, adjMatrix, visited);
| ^~~~~~~~~
| |
| bool (*)[N]
subgraphs.cpp:4:27: note: initializing argument 2 of ‘void DFS(int, bool**, bool*)’
4 | void DFS(int start, bool* adjMatrix[], bool visited[])
| ~~~~~~^~~~~~~~~~~