Problem subgraphs
User Maggie
Submission Time 2023-11-15 08:53:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp: In function ‘int main()’:
subgraphs.cpp:8:23: error: ‘x’ was not declared in this scope; did you mean ‘nx’?
8 | int nx = x + dx[i];
| ^
| nx
subgraphs.cpp:9:23: error: ‘y’ was not declared in this scope; did you mean ‘ny’?
9 | int ny = y + dy[i];
| ^
| ny
subgraphs.cpp:10:44: error: ‘r’ was not declared in this scope
10 | if (nx < 0 || ny < 0 || nx >= r || ny >= c) continue;
| ^
subgraphs.cpp:10:55: error: ‘c’ was not declared in this scope
10 | if (nx < 0 || ny < 0 || nx >= r || ny >= c) continue;
| ^
subgraphs.cpp:11:13: error: ‘dfs’ was not declared in this scope; did you mean ‘ffs’?
11 | dfs(nx, ny);