In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_13794917_11905.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h: In function 'int main()':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3770:5: note: candidate 1: _IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter = int; _Tp = int]
find(_InputIterator __first, _InputIterator __last,
^
0_0_13794917_11905.cpp:24:6: note: candidate 2: bool find(LL, LL, int&)
bool find(LL lo, LL hi, int &it) {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
from 0_0_13794917_11905.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h: In instantiation of '_Iterator std::__find_if(_Iterator, _Iterator, _Predicate) [with _Iterator = int; _Predicate = __gnu_cxx::__ops::_Iter_equals_val<const int>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3779:50: required from '_IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter = int; _Tp = int]'
0_0_13794917_11905.cpp:48:20: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:162:42: error: no matching function for call to '__iterator_category(int&)'
std::__iterator_category(__first));
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:162:42: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:65:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_13794917_11905.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_types.h:201:5: note: template<class _Iter> typename std::iterator_traits<_Iterator>::iterator_category std::__iterator_category(const _Iter&)
__iterator_category(const _Iter&)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_types.h:201:5: note: template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_types.h: In substitution of 'template<class _Iter> typename std::iterator_traits<_Iterator>::iterator_category std::__iterator_category(const _Iter&) [with _Iter = int]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:162:42: required from '_Iterator std::__find_if(_Iterator, _Iterator, _Predicate) [with _Iterator = int; _Predicate = __gnu_cxx::__ops::_Iter_equals_val<const int>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3779:50: required from '_IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter = int; _Tp = int]'
0_0_13794917_11905.cpp:48:20: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_types.h:201:5: error: no type named 'iterator_category' in 'struct std::iterator_traits<int>'
|