0_0_30399640_26809.cpp:39:22: error: conflicting declaration 'std::priority_queue<node> que'
priority_queue<node> que;
^
0_0_30399640_26809.cpp:31:14: note: previous declaration as 'std::vector<node> que'
vector<node> que;
^
0_0_30399640_26809.cpp: In function 'void bfs()':
0_0_30399640_26809.cpp:46:15: error: 'class std::vector<node>' has no member named 'top'
x=que.top();
^
0_0_30399640_26809.cpp:47:13: error: 'class std::vector<node>' has no member named 'pop'
que.pop();
^
0_0_30399640_26809.cpp:54:13: error: expected primary-expression before '}' token
}
^
0_0_30399640_26809.cpp:54:13: error: return-statement with a value, in function returning 'void' [-fpermissive]
0_0_30399640_26809.cpp:54:13: error: expected ';' before '}' token
0_0_30399640_26809.cpp:63:17: error: 'class std::vector<node>' has no member named 'push'
que.push(node{x.from,y.to,x.sum+y.sum});
^
0_0_30399640_26809.cpp: In function 'int main()':
0_0_30399640_26809.cpp:80:14: error: 'class std::vector<node>' has no member named 'pop'
que.pop();
^
0_0_30399640_26809.cpp:85:17: error: 'class std::vector<node>' has no member named 'push'
que.push(node{x,y,z});
^
|