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

Compile Error

subgraphs.cpp:4:26: error: declaration of ‘adjMatrix’ as multidimensional array must have bounds for all dimensions except the first
4 | void DFS(int start, bool adjMatrix[][], bool visited[])
| ^~~~~~~~~
subgraphs.cpp:4:39: error: expected ‘)’ before ‘,’ token
4 | void DFS(int start, bool adjMatrix[][], bool visited[])
| ~ ^
| )
subgraphs.cpp:4:41: error: expected unqualified-id before ‘bool’
4 | void DFS(int start, bool adjMatrix[][], bool visited[])
| ^~~~
subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:38:13: error: ‘tmp’ was not declared in this scope; did you mean ‘temp’?
38 | adjMatrix[tmp][temp2] = true;
| ^~~
| temp
subgraphs.cpp:39:13: error: ‘tmp2’ was not declared in this scope; did you mean ‘temp2’?
39 |