Problem | splithunny |
---|---|
User | justin271828 |
Submission Time | 2023-06-25 14:15:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
splithunny.cpp: In function ‘void bfs(int, int, int*, int, int)’:
splithunny.cpp:8:14: error: invalid types ‘int[int]’ for array subscript
8 | dup_arr[y][x] = 0;
| ^
splithunny.cpp:9:32: error: invalid types ‘int[int]’ for array subscript
9 | if (y < r-1 and dup_arr[y+1][x] == 1) {
| ^
splithunny.cpp:12:30: error: invalid types ‘int[int]’ for array subscript
12 | if (y > 0 and dup_arr[y-1][x] == 1) {
| ^
splithunny.cpp:15:32: error: invalid types ‘int[int]’ for array subscript
15 | if (x < c-1 and dup_arr[y][x+1] == 1) {
| ^
splithunny.cpp:18:30: error: invalid types ‘int[int]’ for array subscript
18 | if (x > 0 and dup_arr[y][x-1] == 1) {
| ^
splithunny.cpp: In function ‘int main()’:
splithunny.cpp:27:17: error: cannot convert ‘int (*)[c]’ t