运行 ID: 39952

In file included from /usr/include/c++/7/bits/stl_algobase.h:71:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/predefined_ops.h: In instantiation of ‘bool __gnu_cxx::__ops::_Iter_less_val::operator()(_Iterator, _Value&) const [with _Iterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Value = const std::pair]’:
/usr/include/c++/7/bits/stl_algobase.h:959:14:   required from ‘_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_less_val]’
/usr/include/c++/7/bits/stl_algobase.h:993:32:   required from ‘_ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Tp = std::pair]’
Main.cc:98:61:   required from here
/usr/include/c++/7/bits/predefined_ops.h:65:22: error: no match for ‘operator<’ (operand types are ‘const std::pair’ and ‘const std::pair’)
       { return *__it < __val; }
                ~~~~~~^~~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/stl_iterator.h:891:5: note: candidate: template bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_IteratorL, _Container>&, const __gnu_cxx::__normal_iterator<_IteratorR, _Container>&)
     operator<(const __normal_iterator<_IteratorL, _Container>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:891:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/bits/stl_algobase.h:71:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/predefined_ops.h:65:22: note:   ‘const std::pair’ is not derived from ‘const __gnu_cxx::__normal_iterator<_IteratorL, _Container>’
       { return *__it < __val; }
                ~~~~~~^~~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/stl_iterator.h:898:5: note: candidate: template bool __gnu_cxx::operator<(const __gnu_cxx::__normal_iterator<_Iterator, _Container>&, const __gnu_cxx::__normal_iterator<_Iterator, _Container>&)
     operator<(const __normal_iterator<_Iterator, _Container>& __lhs,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:898:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/bits/stl_algobase.h:71:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/predefined_ops.h:65:22: note:   ‘const std::pair’ is not derived from ‘const __gnu_cxx::__normal_iterator<_Iterator, _Container>’
       { return *__it < __val; }
                ~~~~~~^~~~~~~
In file included from /usr/include/c++/7/vector:64:0,
                 from Main.cc:8:
/usr/include/c++/7/bits/stl_vector.h:1618:5: note: candidate: template bool std::operator<(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)
     operator<(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y)
     ^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:1618:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/bits/stl_algobase.h:71:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/predefined_ops.h:65:22: note:   ‘const std::pair’ is not derived from ‘const std::vector<_Tp, _Alloc>’
       { return *__it < __val; }
                ~~~~~~^~~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/stl_iterator.h:1151:5: note: candidate: template bool std::operator<(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)
     operator<(const move_iterator<_Iterator>& __x,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:1151:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/bits/stl_algobase.h:71:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/predefined_ops.h:65:22: note:   ‘const std::pair’ is not derived from ‘const std::move_iterator<_IteratorL>’
       { return *__it < __val; }
                ~~~~~~^~~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/stl_iterator.h:1145:5: note: candidate: template bool std::operator<(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
     operator<(const move_iterator<_IteratorL>& __x,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:1145:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/bits/stl_algobase.h:71:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/predefined_ops.h:65:22: note:   ‘const std::pair’ is not derived from ‘const std::move_iterator<_IteratorL>’
       { return *__it < __val; }
                ~~~~~~^~~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/stl_iterator.h:346:5: note: candidate: template bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
     operator<(const reverse_iterator<_IteratorL>& __x,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:346:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/bits/stl_algobase.h:71:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/predefined_ops.h:65:22: note:   ‘const std::pair’ is not derived from ‘const std::reverse_iterator<_Iterator>’
       { return *__it < __val; }
                ~~~~~~^~~~~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/stl_iterator.h:308:5: note: candidate: template bool std::operator<(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
     operator<(const reverse_iterator<_Iterator>& __x,
     ^~~~~~~~
/usr/include/c++/7/bits/stl_iterator.h:308:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/bits/stl_algobase.h:71:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/predefined_ops.h:65:22: note:   ‘const std::pair’ is not derived from ‘const std::reverse_iterator<_Iterator>’
       { return *__it < __val; }
                ~~~~~~^~~~~~~
In file included from /usr/include/c++/7/utility:70:0,
                 from /usr/include/c++/7/algorithm:60,
                 from Main.cc:4:
/usr/include/c++/7/bits/stl_pair.h:454:5: note: candidate: template constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
     operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
     ^~~~~~~~
/usr/include/c++/7/bits/stl_pair.h:454:5: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/7/bits/stl_algobase.h:71:0,
                 from /usr/include/c++/7/algorithm:61,
                 from Main.cc:4:
/usr/include/c++/7/bits/predefined_ops.h:65:22: note:   deduced conflicting types for parameter ‘_T2’ (‘unsigned int’ and ‘int’)
       { return *__it < __val; }
                ~~~~~~^~~~~~~