0_0_29998016_17463.cpp:14:1: error: 'queue' does not name a type
queue<node> qu;
^
0_0_29998016_17463.cpp:18:12: error: variable or field 'clear' declared void
void clear(queue<node>& q)
^
0_0_29998016_17463.cpp:18:12: error: 'queue' was not declared in this scope
0_0_29998016_17463.cpp:18:12: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from 0_0_29998016_17463.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:96:11: note: 'std::queue'
class queue
^
0_0_29998016_17463.cpp:18:22: error: expected primary-expression before '>' token
void clear(queue<node>& q)
^
0_0_29998016_17463.cpp:18:25: error: 'q' was not declared in this scope
void clear(queue<node>& q)
^
0_0_29998016_17463.cpp: In function 'void bfs()':
0_0_29998016_17463.cpp:25:11: error: 'qu' was not declared in this scope
clear(qu);
^
0_0_29998016_17463.cpp:25:13: error: 'clear' was not declared in this scope
clear(qu);
^
0_0_29998016_17463.cpp:28:11: error: 'sty' was not declared in this scope
f.y = sty;
^
0_0_29998016_17463.cpp:38:23: error: 'cnt' was not declared in this scope
if(f.cnt+1 >= cnt)
^
0_0_29998016_17463.cpp:50:39: error: 'min' was not declared in this scope
ans = min(ans, f.cnt+1);
^
0_0_29998016_17463.cpp:50:39: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_29998016_17463.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
0_0_29998016_17463.cpp:53:26: error: 'x' was not declared in this scope
if(f.nb[s.x][x.y] > -1 || mp[s.x][s.y] == '.')
^
0_0_29998016_17463.cpp: In function 'int main()':
0_0_29998016_17463.cpp:83:26: error: invalid type argument of unary '*' (have 'int')
while(scanf("%d%d", *n, &m), n || m)
^
0_0_29998016_17463.cpp:89:32: error: expected primary-expression before ';' token
for(int j = 0; j < ; j++)
^
0_0_29998016_17463.cpp:94:25: error: 'sty' was not declared in this scope
sty = j;
^
|