Problem | subgraphs |
---|---|
User | Johnnie |
Submission Time | 2023-06-25 11:36:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:34:27: error: ‘n’ was not declared in this scope
34 | memset(adjMatrix, false, n*n);
| ^
subgraphs.cpp:38:13: error: ‘tmp’ was not declared in this scope; did you mean ‘temp’?
38 | adjMatrix[tmp][temp2] = true;