Problem splithunny
User hwy
Submission Time 2023-06-20 10:41:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘bool valid(int, int)’:
splithunny.cpp:12:27: error: ‘n’ was not declared in this scope
12 | return (0 <= i && i < n) && (0 <= j && j < m) && graph[i][j] == 'H' && !visited[i][j];
| ^
splithunny.cpp:12:48: error: ‘m’ was not declared in this scope
12 | return (0 <= i && i < n) && (0 <= j && j < m) && graph[i][j] == 'H' && !visited[i][j];
| ^
splithunny.cpp: In function ‘int main()’:
splithunny.cpp:29:25: error: ‘n’ was not declared in this scope
29 | for (int i = 0; i < n; i++) {
| ^
splithunny.cpp:30:29: error: ‘m’ was not declared in this scope
30 | for (int j = 0; j < m; j++) cin >> graph[i][j];
| ^