Problem | splithunny |
---|---|
User | justin271828 |
Submission Time | 2023-06-25 16:11:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
splithunny.cpp: In function ‘void bfs(int, int)’:
splithunny.cpp:8:2: error: ‘dup_arr’ was not declared in this scope
8 | dup_arr[y][x] = 0;
| ^~~~~~~
splithunny.cpp:9:10: error: ‘r’ was not declared in this scope
9 | if (y < r-1 and dup_arr[y+1][x] == 1) {
| ^
splithunny.cpp:15:10: error: ‘c’ was not declared in this scope
15 | if (x < c-1 and dup_arr[y][x+1] == 1) {
| ^
splithunny.cpp: In function ‘int main()’:
splithunny.cpp:27:17: error: cannot convert ‘int (*)[c]’ to ‘int*’ in initialization
27 | int *dup_arr = arr;
| ^~~
| |
| int (*)[c]
splithunny.cpp:45:22: error: too many arguments to function ‘void bfs(int, int)’
45 | bfs(i, j, dup_arr);
| ^
splithunny.cpp:7:6: note: declared here
7 | void bfs(int y, int x) {// yr xc
| ^~~