0_0_26741309_16656.cpp: In function 'int main()':
0_0_26741309_16656.cpp:38:28: error: no matching function for call to 'std::stack<int>::push(std::pair<int, int>)'
q.push(make_pair(i,a[i]));
^
0_0_26741309_16656.cpp:38:28: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_26741309_16656.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:189:7: note: void std::stack<_Tp, _Sequence>::push(const value_type&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::stack<_Tp, _Sequence>::value_type = int]
push(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:189:7: note: no known conversion for argument 1 from 'std::pair<int, int>' to 'const value_type& {aka const int&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:194:7: note: void std::stack<_Tp, _Sequence>::push(std::stack<_Tp, _Sequence>::value_type&&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::stack<_Tp, _Sequence>::value_type = int]
push(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:194:7: note: no known conversion for argument 1 from 'std::pair<int, int>' to 'std::stack<int>::value_type&& {aka int&&}'
|