Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
Minimal exampleError(s): In file included from 1877653059/source.cpp:1: In file included from /usr/include/c++/v1/iostream:38: In file included from /usr/include/c++/v1/ios:216: In file included from /usr/include/c++/v1/__locale:15: In file included from /usr/include/c++/v1/string:477: In file included from /usr/include/c++/v1/string_view:176: In file included from /usr/include/c++/v1/__string:56: /usr/include/c++/v1/algorithm:719:71: error: invalid operands to binary expression ('const A' and 'const A') bool operator()(const _T1& __x, const _T1& __y) const {return __x < __y;} ~~~ ^ ~~~ /usr/include/c++/v1/algorithm:4015:17: note: in instantiation of member function 'std::__1::__less<A, A>::operator()' requested here if (__comp(*--__last, *__first)) ^ /usr/include/c++/v1/algorithm:4201:5: note: in instantiation of function template specialization 'std::__1::__sort<std::__1::__less<A, A> &, A *>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /usr/include/c++/v1/algorithm:4210:12: note: in instantiation of function template specialization 'std::__1::sort<A *, std::__1::__less<A, A> >' requested here _VSTD::sort(__first, __last, __less<typename iterator_traits<_RandomAccessIterator>::value_type>()); ^ /usr/include/c++/v1/algorithm:4226:12: note: in instantiation of function template specialization 'std::__1::sort<A *>' requested here _VSTD::sort(__first.base(), __last.base()); ^ 1877653059/source.cpp:21:10: note: in instantiation of function template specialization 'std::__1::sort<A>' requested here std::sort(a.begin(),a.end()); ^ 1877653059/source.cpp:8:10: note: candidate function not viable: 'this' argument has type 'const A', but method is not marked const bool operator<(const A& a) { ^ /usr/include/c++/v1/utility:572:1: note: candidate template ignored: could not match 'pair<type-parameter-0-0, type-parameter-0-1>' against 'const A' operator< (const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y) ^ /usr/include/c++/v1/iterator:702:1: note: candidate template ignored: could not match 'reverse_iterator<type-parameter-0-0>' against 'const A' operator<(const reverse_iterator<_Iter1>& __x, const reverse_iterator<_Iter2>& __y) ^ /usr/include/c++/v1/iterator:1143:1: note: candidate template ignored: could not match 'move_iterator<type-parameter-0-0>' against 'const A' operator<(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>& __y) ^ /usr/include/c++/v1/iterator:1512:1: note: candidate template ignored: could not match '__wrap_iter<type-parameter-0-0>' against 'const A' operator<(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXCEPT_DEBUG ^ /usr/include/c++/v1/tuple:1187:1: note: candidate template ignored: could not match 'tuple<type-parameter-0-0...>' against 'const A' operator<(const tuple<_Tp...>& __x, const tuple<_Up...>& __y) ^ /usr/include/c++/v1/memory:2920:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'const A' operator< (const unique_ptr<_T1, _D1>& __x, const unique_ptr<_T2, _D2>& __y) ^ /usr/include/c++/v1/memory:2978:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'const A' operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t) ^ /usr/include/c++/v1/memory:2987:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'const A' operator<(nullptr_t, const unique_ptr<_T1, _D1>& __x) ^ /usr/include/c++/v1/memory:4758:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'const A' operator<(const shared_ptr<_Tp>& __x, const shared_ptr<_Up>& __y) _NOEXCEPT ^ /usr/include/c++/v1/memory:4823:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'const A' operator<(const shared_ptr<_Tp>& __x, nullptr_t) _NOEXCEPT ^ /usr/include/c++/v1/memory:4831:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'const A' operator<(nullptr_t, const shared_ptr<_Tp>& __x) _NOEXCEPT ^ In file included from 1877653059/source.cpp:1: In file included from /usr/include/c++/v1/iostream:38: In file included from /usr/include/c++/v1/ios:216: In file included from /usr/include/c++/v1/__locale:15: In file included from /usr/include/c++/v1/string:477: In file included from /usr/include/c++/v1/string_view:176: In file included from /usr/include/c++/v1/__string:56: /usr/include/c++/v1/algorithm:3802:20: error: no matching function for call to '__sort3' unsigned __r = __sort3<_Compare>(__x1, __x2, __x3, __c); ^~~~~~~~~~~~~~~~~ /usr/include/c++/v1/algorithm:4022:20: note: in instantiation of function template specialization 'std::__1::__sort4<std::__1::__less<A, A> &, A *>' requested here _VSTD::__sort4<_Compare>(__first, __first+1, __first+2, --__last, __comp); ^ /usr/include/c++/v1/algorithm:4201:5: note: in instantiation of function template specialization 'std::__1::__sort<std::__1::__less<A, A> &, A *>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /usr/include/c++/v1/algorithm:4210:12: note: in instantiation of function template specialization 'std::__1::sort<A *, std::__1::__less<A, A> >' requested here _VSTD::sort(__first, __last, __less<typename iterator_traits<_RandomAccessIterator>::value_type>()); ^ /usr/include/c++/v1/algorithm:4226:12: note: in instantiation of function template specialization 'std::__1::sort<A *>' requested here _VSTD::sort(__first.base(), __last.base()); ^ 1877653059/source.cpp:21:10: note: in instantiation of function template specialization 'std::__1::sort<A>' requested here std::sort(a.begin(),a.end()); ^ /usr/include/c++/v1/algorithm:3762:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less<A, A> &, _ForwardIterator = A *] __sort3(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c) ^ /usr/include/c++/v1/algorithm:3828:20: error: no matching function for call to '__sort4' unsigned __r = __sort4<_Compare>(__x1, __x2, __x3, __x4, __c); ^~~~~~~~~~~~~~~~~ /usr/include/c++/v1/algorithm:4025:20: note: in instantiation of function template specialization 'std::__1::__sort5<std::__1::__less<A, A> &, A *>' requested here _VSTD::__sort5<_Compare>(__first, __first+1, __first+2, __first+3, --__last, __comp); ^ /usr/include/c++/v1/algorithm:4201:5: note: in instantiation of function template specialization 'std::__1::__sort<std::__1::__less<A, A> &, A *>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /usr/include/c++/v1/algorithm:4210:12: note: in instantiation of function template specialization 'std::__1::sort<A *, std::__1::__less<A, A> >' requested here _VSTD::sort(__first, __last, __less<typename iterator_traits<_RandomAccessIterator>::value_type>()); ^ /usr/include/c++/v1/algorithm:4226:12: note: in instantiation of function template specialization 'std::__1::sort<A *>' requested here _VSTD::sort(__first.base(), __last.base()); ^ 1877653059/source.cpp:21:10: note: in instantiation of function template specialization 'std::__1::sort<A>' requested here std::sort(a.begin(),a.end()); ^ /usr/include/c++/v1/algorithm:3799:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less<A, A> &, _ForwardIterator = A *] __sort4(_ForwardIterator __x1, _ForwardIterator __x2, _ForwardIterator __x3, ^ /usr/include/c++/v1/algorithm:3893:5: error: no matching function for call to '__sort3' __sort3<_Compare>(__first, __first+1, __j, __comp); ^~~~~~~~~~~~~~~~~ /usr/include/c++/v1/algorithm:4030:20: note: in instantiation of function template specialization 'std::__1::__insertion_sort_3<std::__1::__less<A, A> &, A *>' requested here _VSTD::__insertion_sort_3<_Compare>(__first, __last, __comp); ^ /usr/include/c++/v1/algorithm:4201:5: note: in instantiation of function template specialization 'std::__1::__sort<std::__1::__less<A, A> &, A *>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /usr/include/c++/v1/algorithm:4210:12: note: in instantiation of function template specialization 'std::__1::sort<A *, std::__1::__less<A, A> >' requested here _VSTD::sort(__first, __last, __less<typename iterator_traits<_RandomAccessIterator>::value_type>()); ^ /usr/include/c++/v1/algorithm:4226:12: note: in instantiation of function template specialization 'std::__1::sort<A *>' requested here _VSTD::sort(__first.base(), __last.base()); ^ 1877653059/source.cpp:21:10: note: in instantiation of function template specialization 'std::__1::sort<A>' requested here std::sort(a.begin(),a.end()); ^ /usr/include/c++/v1/algorithm:3762:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less<A, A> &, _ForwardIterator = A *] __sort3(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c) ^ /usr/include/c++/v1/algorithm:3926:9: error: no matching function for call to '__sort3' _VSTD::__sort3<_Compare>(__first, __first+1, --__last, __comp); ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/__config:447:15: note: expanded from macro '_VSTD' #define _VSTD std::_LIBCPP_NAMESPACE ^ /usr/include/c++/v1/algorithm:4156:32: note: in instantiation of function template specialization 'std::__1::__insertion_sort_incomplete<std::__1::__less<A, A> &, A *>' requested here bool __fs = _VSTD::__insertion_sort_incomplete<_Compare>(__first, __i, __comp); ^ /usr/include/c++/v1/algorithm:4201:5: note: in instantiation of function template specialization 'std::__1::__sort<std::__1::__less<A, A> &, A *>' requested here __sort<_Comp_ref>(__first, __last, __comp); ^ /usr/include/c++/v1/algorithm:4210:12: note: in instantiation of function template specialization 'std::__1::sort<A *, std::__1::__less<A, A> >' requested here _VSTD::sort(__first, __last, __less<typename iterator_traits<_RandomAccessIterator>::value_type>()); ^ /usr/include/c++/v1/algorithm:4226:12: note: in instantiation of function template specialization 'std::__1::sort<A *>' requested here _VSTD::sort(__first.base(), __last.base()); ^ 1877653059/source.cpp:21:10: note: in instantiation of function template specialization 'std::__1::sort<A>' requested here std::sort(a.begin(),a.end()); ^ /usr/include/c++/v1/algorithm:3762:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less<A, A> &, _ForwardIterator = A *] __sort3(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c) ^ /usr/include/c++/v1/algorithm:3929:9: error: no matching function for call to '__sort4' _VSTD::__sort4<_Compare>(__first, __first+1, __first+2, --__last, __comp); ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/__config:447:15: note: expanded from macro '_VSTD' #define _VSTD std::_LIBCPP_NAMESPACE ^ /usr/include/c++/v1/algorithm:3799:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less<A, A> &, _ForwardIterator = A *] __sort4(_ForwardIterator __x1, _ForwardIterator __x2, _ForwardIterator __x3, ^ /usr/include/c++/v1/algorithm:3932:9: error: no matching function for call to '__sort5' _VSTD::__sort5<_Compare>(__first, __first+1, __first+2, __first+3, --__last, __comp); ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/__config:447:15: note: expanded from macro '_VSTD' #define _VSTD std::_LIBCPP_NAMESPACE ^ /usr/include/c++/v1/algorithm:3825:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less<A, A> &, _ForwardIterator = A *] __sort5(_ForwardIterator __x1, _ForwardIterator __x2, _ForwardIterator __x3, ^ /usr/include/c++/v1/algorithm:3937:5: error: no matching function for call to '__sort3' __sort3<_Compare>(__first, __first+1, __j, __comp); ^~~~~~~~~~~~~~~~~ /usr/include/c++/v1/algorithm:3762:1: note: candidate template ignored: substitution failure [with _Compare = std::__1::__less<A, A> &, _ForwardIterator = A *] __sort3(_ForwardIterator __x, _ForwardIterator __y, _ForwardIterator __z, _Compare __c) ^ 8 errors generated. |
λ
.NET NoSQL database for rapid development
|