0_0_15172574_27050.cpp: In function 'void bfs(int, int)':
0_0_15172574_27050.cpp:20:12: error: 'vis' was not declared in this scope
memset(vis,-1,sizeof(vis));
^
0_0_15172574_27050.cpp:33:14: error: 'i' was not declared in this scope
for (i = 0; i < 4; i++)
^
0_0_15172574_27050.cpp:35:25: error: 'dx' was not declared in this scope
x = tmp.x + dx[i];
^
0_0_15172574_27050.cpp:36:25: error: 'dy' was not declared in this scope
y = tmp.y + dy[i];
^
0_0_15172574_27050.cpp:37:26: error: 'check' was not declared in this scope
if (check(x,y))
^
0_0_15172574_27050.cpp:39:45: error: 'num' was not declared in this scope
if (tmp.d + 1 == vis[x][y]) num[x][y] += num[tmp.x][tmp.y];
^
0_0_15172574_27050.cpp:43:21: error: 'num' was not declared in this scope
num[x][y] = num[tmp.x][tmp.y];
^
0_0_15172574_27050.cpp:52:13: error: 'ex' was not declared in this scope
if (vis[ex][ey] >T) printf("");
^
0_0_15172574_27050.cpp:52:17: error: 'ey' was not declared in this scope
if (vis[ex][ey] >T) printf("");
^
0_0_15172574_27050.cpp:52:22: error: 'T' was not declared in this scope
if (vis[ex][ey] >T) printf("");
^
0_0_15172574_27050.cpp:53:37: error: too few arguments to function 'int puts(const char*)'
else if (vis[ex][ey] == T) puts();
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdio:42:0,
from 0_0_15172574_27050.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:504:15: note: declared here
int __cdecl puts(const char *_Str);
^
0_0_15172574_27050.cpp:54:24: error: 'num' was not declared in this scope
else printf("%d\n",num[x][y]);
^
0_0_15172574_27050.cpp: In function 'int main()':
0_0_15172574_27050.cpp:60:28: error: 'n' was not declared in this scope
while (scanf("%d%d%d",&n,&m,&T)!=EOF)
^
0_0_15172574_27050.cpp:60:31: error: 'm' was not declared in this scope
while (scanf("%d%d%d",&n,&m,&T)!=EOF)
^
0_0_15172574_27050.cpp:60:34: error: 'T' was not declared in this scope
while (scanf("%d%d%d",&n,&m,&T)!=EOF)
^
0_0_15172574_27050.cpp:62:14: error: 'i' was not declared in this scope
for (i = 0; i < n; i++)
^
0_0_15172574_27050.cpp:63:24: error: 'st' was not declared in this scope
scanf("%s",st);
^
0_0_15172574_27050.cpp:64:14: error: 'i' was not declared in this scope
for (i = 0; i < n; i++)
^
0_0_15172574_27050.cpp:66:18: error: 'j' was not declared in this scope
for (j = 0; j < m; j++)
^
0_0_15172574_27050.cpp:68:21: error: 'st' was not declared in this scope
if (st[i][j] == 'S') sx = i, sy =j;
^
0_0_15172574_27050.cpp:68:38: error: 'sx' was not declared in this scope
if (st[i][j] == 'S') sx = i, sy =j;
^
0_0_15172574_27050.cpp:68:46: error: 'sy' was not declared in this scope
if (st[i][j] == 'S') sx = i, sy =j;
^
0_0_15172574_27050.cpp:69:21: error: 'st' was not declared in this scope
if (st[i][j] == 'E') ex = i, ey = j;
^
0_0_15172574_27050.cpp:69:39: error: 'ex' was not declared in this scope
if (st[i][j] == 'E') ex = i, ey = j;
^
0_0_15172574_27050.cpp:69:47: error: 'ey' was not declared in this scope
if (st[i][j] == 'E') ex = i, ey = j;
^
0_0_15172574_27050.cpp:72:13: error: 'sx' was not declared in this scope
bfs(sx,sy);
^
0_0_15172574_27050.cpp:72:16: error: 'sy' was not declared in this scope
bfs(sx,sy);
^
|