Problem adjmatrix
User christal
Submission Time 2023-12-27 15:16:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:17:15: error: ‘MAXR’ was not declared in this scope
17 | bool visited[MAXR][MAXC];
| ^~~~
adjmatrix.cpp:17:21: error: ‘MAXC’ was not declared in this scope
17 | bool visited[MAXR][MAXC];
| ^~~~
adjmatrix.cpp:19:30: error: a function-definition is not allowed here before ‘{’ token
19 | void dfs(int curi, int curj) { // remember to set visited[starti][startj] = true before calling dfs(starti, startj);!
| ^