0_0_15752456_28188.cpp: In function 'int BFS(int, int)':
0_0_15752456_28188.cpp:74:38: error: no matching function for call to 'std::priority_queue<Node>::push(int&)'
Q.push(next.state);
^
0_0_15752456_28188.cpp:74:38: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from 0_0_15752456_28188.cpp:6:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = Node; _Sequence = std::vector<Node, std::allocator<Node> >; _Compare = std::less<Node>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = Node]
push(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: no known conversion for argument 1 from 'int' to 'const value_type& {aka const Node&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = Node; _Sequence = std::vector<Node, std::allocator<Node> >; _Compare = std::less<Node>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = Node]
push(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: no known conversion for argument 1 from 'int' to 'std::priority_queue<Node>::value_type&& {aka Node&&}'
0_0_15752456_28188.cpp:85:38: error: 'struct Node' has no member named 't'
if(!vis[next.x][next.t][next.digit][next.state])
^
|