Problem splithunny
User justin271828
Submission Time 2023-06-25 16:12:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘void bfs(int, int)’:
splithunny.cpp:9:2: error: ‘dup_arr’ was not declared in this scope
9 | dup_arr[y][x] = 0;
| ^~~~~~~
splithunny.cpp: At global scope:
splithunny.cpp:24:1: error: ‘cin’ does not name a type; did you mean ‘sin’?
24 | cin >> r >> c;
| ^~~
| sin
splithunny.cpp:25:10: error: array bound is not an integer constant before ‘]’ token
25 | int arr[r][c];
| ^
splithunny.cpp:25:13: error: array bound is not an integer constant before ‘]’ token
25 | int arr[r][c];
| ^
splithunny.cpp:26:16: error: ‘arr’ was not declared in this scope
26 | int *dup_arr = arr;
| ^~~
splithunny.cpp:28:1: error: expected unqualified-id before ‘for’
28 | for (int i = 0; i < r; i++) {
| ^~~
splithunny.cpp:28:17: error: ‘i’ does not name a type
28 | for (int i = 0; i < r; i++) {
|