0_0_25752512_17496.cpp: In function 'void dfs(int, int)':
0_0_25752512_17496.cpp:7:16: error: 'DIRECTSIZE' was not declared in this scope
for(i=0; i<DIRECTSIZE; i++) {
^
0_0_25752512_17496.cpp:8:29: error: 'direct' was not declared in this scope
int nextrow = row + direct[i].drow;
^
0_0_25752512_17496.cpp:11:12: error: 'grid' was not declared in this scope
if(grid[nextrow][nextcol] == '.') {
^
0_0_25752512_17496.cpp:12:13: error: 'count' was not declared in this scope
count++;
^
0_0_25752512_17496.cpp: In function 'char getmychar()':
0_0_25752512_17496.cpp:25:22: error: 'getchar' was not declared in this scope
while((c=getchar()) && (c == '\n' || c == '\t' || c == ' '));
^
0_0_25752512_17496.cpp: In function 'int main()':
0_0_25752512_17496.cpp:34:31: error: 'scanf' was not declared in this scope
while(scanf("%d%d", &w, &h) != EOF) {
^
0_0_25752512_17496.cpp:34:36: error: 'EOF' was not declared in this scope
while(scanf("%d%d", &w, &h) != EOF) {
^
0_0_25752512_17496.cpp:40:16: error: 'grid' was not declared in this scope
memset(grid, 0, sizeof(grid));
^
0_0_25752512_17496.cpp:40:37: error: 'memset' was not declared in this scope
memset(grid, 0, sizeof(grid));
^
0_0_25752512_17496.cpp:54:9: error: 'count' was not declared in this scope
count = 1;
^
0_0_25752512_17496.cpp:60:29: error: 'printf' was not declared in this scope
printf("%d\n", count);
^
|