Problem | adjmatrix |
---|---|
User | christal |
Submission Time | 2023-12-27 15:18:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:7:19: error: array must be initialized with a brace-enclosed initializer
7 | bool g[55][55] = true;
| ^~~~
adjmatrix.cpp:17:4: error: ‘starti’ was not declared in this scope; did you mean ‘static’?
17 | g[starti][startj] = true;
| ^~~~~~
| static
adjmatrix.cpp:17:12: error: ‘startj’ was not declared in this scope
17 | g[starti][startj] = true;
| ^~~~~~
adjmatrix.cpp:18:30: error: a function-definition is not allowed here before ‘{’ token
18 | void dfs(int curi, int curj) { // remember to set visited[starti][startj] = true before calling dfs(starti, startj);!
| ^