0_0_16770629_6526.cpp:10:7: error: 'node' was not declared in this scope
queue<node> q;
^
0_0_16770629_6526.cpp:10:11: error: template argument 1 is invalid
queue<node> q;
^
0_0_16770629_6526.cpp:10:11: error: template argument 2 is invalid
0_0_16770629_6526.cpp:10:14: error: invalid type in declaration before ';' token
queue<node> q;
^
0_0_16770629_6526.cpp: In function 'int bfs(int, int)':
0_0_16770629_6526.cpp:34:4: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(p);
^
0_0_16770629_6526.cpp:36:11: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty())
^
0_0_16770629_6526.cpp:38:9: error: request for member 'front' in 'q', which is of non-class type 'int'
tmp=q.front();
^
0_0_16770629_6526.cpp:39:5: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^
0_0_16770629_6526.cpp:58:7: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(next);
^
0_0_16770629_6526.cpp:75:10: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(next);
^
0_0_16770629_6526.cpp:84:9: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(next);
^
0_0_16770629_6526.cpp:100:10: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(next);
^
0_0_16770629_6526.cpp:109:9: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(next);
^
|