0_0_24625454_27085.cpp:6:16: error: 'node' was not declared in this scope
priority_queue<node >q;
^
0_0_24625454_27085.cpp:6:21: error: template argument 1 is invalid
priority_queue<node >q;
^
0_0_24625454_27085.cpp:6:21: error: template argument 2 is invalid
0_0_24625454_27085.cpp:6:21: error: template argument 3 is invalid
0_0_24625454_27085.cpp:6:23: error: invalid type in declaration before ';' token
priority_queue<node >q;
^
0_0_24625454_27085.cpp: In function 'void bfs()':
0_0_24625454_27085.cpp:25:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty()) q.pop();
^
0_0_24625454_27085.cpp:25:25: error: request for member 'pop' in 'q', which is of non-class type 'int'
while(!q.empty()) q.pop();
^
0_0_24625454_27085.cpp:32:22: error: request for member 'push' in 'q', which is of non-class type 'int'
if(a[i]==maxx) q.push(node(i,0));
^
0_0_24625454_27085.cpp:33:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty())
^
0_0_24625454_27085.cpp:35:20: error: request for member 'top' in 'q', which is of non-class type 'int'
node tmp=q.top();q.pop();
^
0_0_24625454_27085.cpp:35:28: error: request for member 'pop' in 'q', which is of non-class type 'int'
node tmp=q.top();q.pop();
^
0_0_24625454_27085.cpp:45:11: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(node(to[tmp.id],tmp.step+1));
^
|