0_0_17817727_14127.cpp:9:53: error: declaration of 'vis' as multidimensional array must have bounds for all dimensions except the first
int n,m,q,dir[4][2]={0,1,0,-1,1,0,-1,0},vis[MAX][MAX],l[MAX*MAX],r[MAX*MAX];
^
0_0_17817727_14127.cpp:9:64: error: expected primary-expression before ']' token
int n,m,q,dir[4][2]={0,1,0,-1,1,0,-1,0},vis[MAX][MAX],l[MAX*MAX],r[MAX*MAX];
^
0_0_17817727_14127.cpp:9:75: error: expected primary-expression before ']' token
int n,m,q,dir[4][2]={0,1,0,-1,1,0,-1,0},vis[MAX][MAX],l[MAX*MAX],r[MAX*MAX];
^
0_0_17817727_14127.cpp:10:18: error: declaration of 'str' as multidimensional array must have bounds for all dimensions except the first
char str[MAX][MAX];
^
0_0_17817727_14127.cpp: In function 'int check(int)':
0_0_17817727_14127.cpp:24:16: error: 'str' was not declared in this scope
if(str[i][j]=='1')vis[i][j]=1;
^
0_0_17817727_14127.cpp:24:31: error: 'vis' was not declared in this scope
if(str[i][j]=='1')vis[i][j]=1;
^
0_0_17817727_14127.cpp:25:18: error: 'vis' was not declared in this scope
else vis[i][j]=0;
^
0_0_17817727_14127.cpp:30:9: error: 'vis' was not declared in this scope
vis[l[i]][r[i]]=1;
^
0_0_17817727_14127.cpp:30:13: error: 'l' was not declared in this scope
vis[l[i]][r[i]]=1;
^
0_0_17817727_14127.cpp:30:19: error: 'r' was not declared in this scope
vis[l[i]][r[i]]=1;
^
0_0_17817727_14127.cpp:34:13: error: 'vis' was not declared in this scope
if(!vis[0][k])
^
0_0_17817727_14127.cpp:50:20: error: 'vis' was not declared in this scope
if(!vis[fx][fy])
^
0_0_17817727_14127.cpp: In function 'int main()':
0_0_17817727_14127.cpp:85:24: error: 'str' was not declared in this scope
scanf("%s",str[i]);
^
0_0_17817727_14127.cpp:90:27: error: 'l' was not declared in this scope
scanf("%d%d",&l[i],&r[i]);
^
0_0_17817727_14127.cpp:90:33: error: 'r' was not declared in this scope
scanf("%d%d",&l[i],&r[i]);
^
|