0_0_33037081_31725.cpp: In function 'int BFS()':
0_0_33037081_31725.cpp:35:8: error: 'P' was not declared in this scope
queue<P>que;
^
0_0_33037081_31725.cpp:35:9: error: template argument 1 is invalid
queue<P>que;
^
0_0_33037081_31725.cpp:35:9: error: template argument 2 is invalid
0_0_33037081_31725.cpp:35:13: error: invalid type in declaration before ';' token
queue<P>que;
^
0_0_33037081_31725.cpp:36:4: error: expected ';' before 'p'
P p;
^
0_0_33037081_31725.cpp:42:6: error: request for member 'push' in 'que', which is of non-class type 'int'
que.push(P(p1,p2,p3)); //初始位置入队
^
0_0_33037081_31725.cpp:44:13: error: request for member 'empty' in 'que', which is of non-class type 'int'
while(!que.empty())
^
0_0_33037081_31725.cpp:46:3: error: 'p' was not declared in this scope
p=que.front();
^
0_0_33037081_31725.cpp:46:9: error: request for member 'front' in 'que', which is of non-class type 'int'
p=que.front();
^
0_0_33037081_31725.cpp:47:7: error: request for member 'pop' in 'que', which is of non-class type 'int'
que.pop();
^
0_0_33037081_31725.cpp:67:10: error: request for member 'push' in 'que', which is of non-class type 'int'
que.push(P(i,y,z)); //加入更新的位置
^
0_0_33037081_31725.cpp:78:10: error: request for member 'push' in 'que', which is of non-class type 'int'
que.push(P(x,i,z));
^
0_0_33037081_31725.cpp:88:10: error: request for member 'push' in 'que', which is of non-class type 'int'
que.push(P(x,y,i));
^
|