0_0_36881115_6321.cpp: In function 'int main()':
0_0_36881115_6321.cpp:97:62: error: no match for 'operator-' (operand types are 'std::_Rb_tree_const_iterator<long long int>' and 'std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}')
int pos = lower_bound(p.begin(), p.end(), x) - p.begin();
^
0_0_36881115_6321.cpp:97:62: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36881115_6321.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:328:5: note: template<class _Iterator> typename std::reverse_iterator<_Iterator>::difference_type std::operator-(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
operator-(const reverse_iterator<_Iterator>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:328:5: note: template argument deduction/substitution failed:
0_0_36881115_6321.cpp:97:72: note: 'std::_Rb_tree_const_iterator<long long int>' is not derived from 'const std::reverse_iterator<_Iterator>'
int pos = lower_bound(p.begin(), p.end(), x) - p.begin();
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36881115_6321.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:380:5: note: template<class _IteratorL, class _IteratorR> decltype ((__y.base() - __x.base())) std::operator-(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
operator-(const reverse_iterator<_IteratorL>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:380:5: note: template argument deduction/substitution failed:
0_0_36881115_6321.cpp:97:72: note: 'std::_Rb_tree_const_iterator<long long int>' is not derived from 'const std::reverse_iterator<_Iterator>'
int pos = lower_bound(p.begin(), p.end(), x) - p.begin();
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36881115_6321.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1121:5: note: template<class _IteratorL, class _IteratorR> decltype ((__x.base() - __y.base())) std::operator-(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&)
operator-(const move_iterator<_IteratorL>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1121:5: note: template argument deduction/substitution failed:
0_0_36881115_6321.cpp:97:72: note: 'std::_Rb_tree_const_iterator<long long int>' is not derived from 'const std::move_iterator<_Iterator>'
int pos = lower_bound(p.begin(), p.end(), x) - p.begin();
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36881115_6321.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1128:5: note: template<class _Iterator> decltype ((__x.base() - __y.base())) std::operator-(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
operator-(const move_iterator<_Iterator>& __x,
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1128:5: note: template argument deduction/substitution failed:
0_0_36881115_6321.cpp:97:72: note: 'std::_Rb_tree_const_iterator<long long int>' is not derived from 'const std::move_iterator<_Iterator>'
int pos = lower_bound(p.begin(), p.end(), x) - p.begin();
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36881115_6321.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:351:5: note: template<class _Tp> std::complex<_Tp> std::operator-(const std::complex<_Tp>&, const std::complex<_Tp>&)
operator-(const complex<_Tp>& __x, const complex<_Tp>& __y)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:351:5: note: template argument deduction/substitution failed:
0_0_36881115_6321.cpp:97:72: note: 'std::_Rb_tree_const_iterator<long long int>' is not derived from 'const std::complex<_Tp>'
int pos = lower_bound(p.begin(), p.end(), x) - p.begin();
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36881115_6321.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:360:5: note: template<class _Tp> std::complex<_Tp> std::operator-(const std::complex<_Tp>&, const _Tp&)
operator-(const complex<_Tp>& __x, const _Tp& __y)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:360:5: note: template argument deduction/substitution failed:
0_0_36881115_6321.cpp:97:72: note: 'std::_Rb_tree_const_iterator<long long int>' is not derived from 'const std::complex<_Tp>'
int pos = lower_bound(p.begin(), p.end(), x) - p.begin();
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36881115_6321.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:369:5: note: template<class _Tp> std::complex<_Tp> std::operator-(const _Tp&, const std::complex<_Tp>&)
operator-(const _Tp& __x, const complex<_Tp>& __y)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:369:5: note: template argument deduction/substitution failed:
0_0_36881115_6321.cpp:97:72: note: 'std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}' is not derived from 'const std::complex<_Tp>'
int pos = lower_bound(p.begin(), p.end(), x) - p.begin();
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36881115_6321.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:446:5: note: template<class _Tp> std::complex<_Tp> std::operator-(const std::complex<_Tp>&)
operator-(const complex<_Tp>& __x)
^
D:/HDOJ
|