nautilus.cpp:5:9: error: array bound is not an integer constant before ']' token
5 | char a[r][c];
| ^
nautilus.cpp:5:12: error: array bound is not an integer constant before ']' token
5 | char a[r][c];
| ^
nautilus.cpp: In function 'void paths(int, int, int)':
nautilus.cpp:9:44: error: 'a' was not declared in this scope
9 | if(x < 0 || x >= r || y < 0 || y >= c || a[x][y] == '#') return;
| ^
nautilus.cpp:10:13: error: 'q' was not declared in this scope
10 | if(far == q){
| ^
nautilus.cpp: In function 'int main()':
nautilus.cpp:21:64: error: 'a' was not declared in this scope
21 | for(int i = 0; i < r; i++) for(int j = 0; j < c; j++) cin >> a[i][j];
| ^
nautilus.cpp:23:60: error: 'a' was not declared in this scope
23 | for(int i = 0; i < r; i++) for(int j = 0; j < c; j++) if(a[i][j] != '#') paths(i, j, 0);
| ^