0_0_36469116_702.cpp: In function 'int main()':
0_0_36469116_702.cpp:85:49: error: no matching function for call to 'lower_bound(int&)'
auto it = lower_bound(a[pos]);
^
0_0_36469116_702.cpp:85:49: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_36469116_702.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note: template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)
lower_bound(_ForwardIterator __first, _ForwardIterator __last,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note: template argument deduction/substitution failed:
0_0_36469116_702.cpp:85:49: note: candidate expects 3 arguments, 1 provided
auto it = lower_bound(a[pos]);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_36469116_702.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note: template<class _FIter, class _Tp, class _Compare> _FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare)
lower_bound(_ForwardIterator __first, _ForwardIterator __last,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note: template argument deduction/substitution failed:
0_0_36469116_702.cpp:85:49: note: candidate expects 4 arguments, 1 provided
auto it = lower_bound(a[pos]);
^
0_0_36469116_702.cpp:103:41: error: no matching function for call to 'lower_bound(int)'
auto it = lower_bound(-i);
^
0_0_36469116_702.cpp:103:41: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_36469116_702.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note: template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)
lower_bound(_ForwardIterator __first, _ForwardIterator __last,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:990:5: note: template argument deduction/substitution failed:
0_0_36469116_702.cpp:103:41: note: candidate expects 3 arguments, 1 provided
auto it = lower_bound(-i);
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_36469116_702.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note: template<class _FIter, class _Tp, class _Compare> _FIter std::lower_bound(_FIter, _FIter, const _Tp&, _Compare)
lower_bound(_ForwardIterator __first, _ForwardIterator __last,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2022:5: note: template argument deduction/substitution failed:
0_0_36469116_702.cpp:103:41: note: candidate expects 4 arguments, 1 provided
auto it = lower_bound(-i);
^
|