0_0_24574871_29814.cpp:10:1: error: expected ',' or ';' before 'int'
int dy[]={0,-1,0,1}
^
0_0_24574871_29814.cpp:11:24: error: conflicting declaration 'int dx'
int N, M, T, S_x, S_y, dx, dy, D_x, D_y,wall_count;
^
0_0_24574871_29814.cpp:9:5: note: previous declaration as 'int dx [4]'
int dx[]={-1,0,1,0}
^
0_0_24574871_29814.cpp: In function 'bool DFS(int, int, int)':
0_0_24574871_29814.cpp:22:50: error: invalid types 'int[int]' for array subscript
if(x + dx[i] < 0 || x + dx[i] >= M || y + dy[i] < 0 || y + dy[i] >= N || map[y+dy[i]][x+dx[i]] == 'X' || used[y+dy][x+dx] == 1)
^
0_0_24574871_29814.cpp:22:67: error: invalid types 'int[int]' for array subscript
if(x + dx[i] < 0 || x + dx[i] >= M || y + dy[i] < 0 || y + dy[i] >= N || map[y+dy[i]][x+dx[i]] == 'X' || used[y+dy][x+dx] == 1)
^
0_0_24574871_29814.cpp:22:87: error: invalid types 'int[int]' for array subscript
if(x + dx[i] < 0 || x + dx[i] >= M || y + dy[i] < 0 || y + dy[i] >= N || map[y+dy[i]][x+dx[i]] == 'X' || used[y+dy][x+dx] == 1)
^
0_0_24574871_29814.cpp:22:124: error: invalid types 'int [7][int*]' for array subscript
if(x + dx[i] < 0 || x + dx[i] >= M || y + dy[i] < 0 || y + dy[i] >= N || map[y+dy[i]][x+dx[i]] == 'X' || used[y+dy][x+dx] == 1)
^
0_0_24574871_29814.cpp:25:16: error: invalid types 'int[int]' for array subscript
used[y+dy[i]][x+dx[i]] = 1;
^
0_0_24574871_29814.cpp:26:14: error: invalid conversion from 'int*' to 'int' [-fpermissive]
if(DFS(x+dx,y+dy,t+1)){
^
0_0_24574871_29814.cpp:13:6: note: initializing argument 1 of 'bool DFS(int, int, int)'
bool DFS(int x, int y,int t)
^
0_0_24574871_29814.cpp:29:16: error: invalid types 'int[int]' for array subscript
used[y+dy[i]][x+dx[i]] = 0;
^
|