0_0_29065315_20135.cpp:11:7: error: 'lkq' was not declared in this scope
queue<lkq>q;
^
0_0_29065315_20135.cpp:11:10: error: template argument 1 is invalid
queue<lkq>q;
^
0_0_29065315_20135.cpp:11:10: error: template argument 2 is invalid
0_0_29065315_20135.cpp:11:12: error: invalid type in declaration before ';' token
queue<lkq>q;
^
0_0_29065315_20135.cpp: In function 'void bfs(int, int)':
0_0_29065315_20135.cpp:23:7: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(now);
^
0_0_29065315_20135.cpp:24:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty())
^
0_0_29065315_20135.cpp:26:15: error: request for member 'front' in 'q', which is of non-class type 'int'
now=q.front();
^
0_0_29065315_20135.cpp:33:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^
0_0_29065315_20135.cpp:47:19: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(next);
^
0_0_29065315_20135.cpp: In function 'int main()':
0_0_29065315_20135.cpp:56:18: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty())
^
0_0_29065315_20135.cpp:57:11: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^
|