0_0_38209655_20552.cpp:14:7: error: 'node' was not declared in this scope
queue<node>q;
^
0_0_38209655_20552.cpp:14:11: error: template argument 1 is invalid
queue<node>q;
^
0_0_38209655_20552.cpp:14:11: error: template argument 2 is invalid
0_0_38209655_20552.cpp:14:13: error: invalid type in declaration before ';' token
queue<node>q;
^
0_0_38209655_20552.cpp: In function 'int bfs(int, int)':
0_0_38209655_20552.cpp:19:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty())
^
0_0_38209655_20552.cpp:21:9: error: 'node' was not declared in this scope
node t=q.front();
^
0_0_38209655_20552.cpp:22:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^
0_0_38209655_20552.cpp:23:15: error: 't' was not declared in this scope
int x=t.a,y=t.b;
^
0_0_38209655_20552.cpp: In function 'int main()':
0_0_38209655_20552.cpp:48:18: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty())
^
0_0_38209655_20552.cpp:50:15: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^
0_0_38209655_20552.cpp:54:56: error: 'w' was not declared in this scope
cout<<"To get from "<<a<<" to "<<b<<" takes "<<w<<" knight moves."<<'\n';
^
|