0_0_35970319_768.cpp:4:8: error: 'MAX' was not declared in this scope
char s[MAX][MAX];
^
0_0_35970319_768.cpp:4:13: error: 'MAX' was not declared in this scope
char s[MAX][MAX];
^
0_0_35970319_768.cpp:5:9: error: 'MAX' was not declared in this scope
int vis[MAX][MAX],n,m,ans;
^
0_0_35970319_768.cpp:5:14: error: 'MAX' was not declared in this scope
int vis[MAX][MAX],n,m,ans;
^
0_0_35970319_768.cpp: In function 'void dfs(int, int)':
0_0_35970319_768.cpp:8:5: error: 'vis' was not declared in this scope
vis[x][y] = 1,ans++;
^
0_0_35970319_768.cpp:11:70: error: 's' was not declared in this scope
if(xx >= 0 && yy >= 0 && xx < n && yy < m && !vis[xx][yy] && s[xx][yy] == '.')
^
0_0_35970319_768.cpp: In function 'int main()':
0_0_35970319_768.cpp:17:31: error: 'scanf' was not declared in this scope
while(~scanf("%d %d",&m,&n),n){
^
0_0_35970319_768.cpp:19:16: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_35970319_768.cpp:19:33: error: 'memset' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_35970319_768.cpp:21:24: error: 's' was not declared in this scope
scanf("%s",s[i]);
^
0_0_35970319_768.cpp:24:20: error: 's' was not declared in this scope
if(s[i][j] == '@')
^
0_0_35970319_768.cpp:28:26: error: 'printf' was not declared in this scope
printf("%d\n",ans);
^
|