0_0_32675112_11500.cpp: In function 'void dijkstra(int)':
0_0_32675112_11500.cpp:40:65: error: no matching function for call to 'std::priority_queue<minpath>::push(<brace-enclosed initializer list>)'
q.push({treasure[id].x, treasure[id].y, val[treasure[id].x]});
^
0_0_32675112_11500.cpp:40:65: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
from 0_0_32675112_11500.cpp:1:
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 = minpath; _Sequence = std::vector<minpath, std::allocator<minpath> >; _Compare = std::less<minpath>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = minpath]
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 '<brace-enclosed initializer list>' to 'const value_type& {aka const minpath&}'
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 = minpath; _Sequence = std::vector<minpath, std::allocator<minpath> >; _Compare = std::less<minpath>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = minpath]
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 '<brace-enclosed initializer list>' to 'std::priority_queue<minpath>::value_type&& {aka minpath&&}'
|