Snippets

Akhil Gandu Error log

Created by Akhil Gandu

File snippet.txt Added

  • Ignore whitespace
  • Hide word diff
+
+In file included from /usr/include/c++/7.2.0/string:48:0,
+                 from /usr/include/c++/7.2.0/bits/locale_classes.h:40,
+                 from /usr/include/c++/7.2.0/bits/ios_base.h:41,
+                 from /usr/include/c++/7.2.0/ios:42,
+                 from /usr/include/c++/7.2.0/ostream:38,
+                 from /usr/include/c++/7.2.0/iostream:39,
+                 from jdoodle.cpp:1:
+/usr/include/c++/7.2.0/bits/stl_function.h: In instantiation of 'constexpr bool std::greater<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = MyStruct]':
+/usr/include/c++/7.2.0/bits/predefined_ops.h:143:18:   required from 'constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Iterator2 = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Compare = std::greater<MyStruct>]'
+/usr/include/c++/7.2.0/bits/stl_algo.h:81:17:   required from 'void std::__move_median_to_first(_Iterator, _Iterator, _Iterator, _Iterator, _Compare) [with _Iterator = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<std::greater<MyStruct> >]'
+/usr/include/c++/7.2.0/bits/stl_algo.h:1921:34:   required from '_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<std::greater<MyStruct> >]'
+/usr/include/c++/7.2.0/bits/stl_algo.h:1953:38:   required from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Size = long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<std::greater<MyStruct> >]'
+/usr/include/c++/7.2.0/bits/stl_algo.h:1968:25:   required from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<std::greater<MyStruct> >]'
+/usr/include/c++/7.2.0/bits/stl_algo.h:4868:18:   required from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<MyStruct*, std::vector<MyStruct> >; _Compare = std::greater<MyStruct>]'
+jdoodle.cpp:32:54:   required from here
+/usr/include/c++/7.2.0/bits/stl_function.h:376:20: error: no match for 'operator>' (operand types are 'const MyStruct' and 'const MyStruct')
+       { return __x > __y; }
+                ~~~~^~~~~
+jdoodle.cpp:15:10: note: candidate: bool MyStruct::operator>(const MyStruct&) <near match>
+     bool operator > (const MyStruct& other) {
+          ^~~~~~~~
+jdoodle.cpp:15:10: note:   passing 'const MyStruct*' as 'this' argument discards qualifiers
+In file included from /usr/include/c++/7.2.0/bits/stl_algobase.h:64:0,
+                 from /usr/include/c++/7.2.0/bits/char_traits.h:39,
+                 from /usr/include/c++/7.2.0/ios:40,
+                 from /usr/include/c++/7.2.0/ostream:38,
+                 from /usr/include/c++/7.2.0/iostream:39,
+                 from jdoodle.cpp:1:
+/usr/include/c++/7.2.0/bits/stl_pair.h:462:5: note: candidate: template<class _T1, class _T2> 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.2.0/bits/stl_pair.h:462:5: note:   template argument deduction/substitution failed:
+In file included from /usr/include/c++/7.2.0/string:48:0,
+                 from /usr/include/c++/7.2.0/bits/locale_classes.h:40,
+                 from /usr/include/c++/7.2.0/bits/ios_base.h:41,
+                 from /usr/include/c++/7.2.0/ios:42,
+                 from /usr/include/c++/7.2.0/ostream:38,
+                 from /usr/include/c++/7.2.0/iostream:39,
+                 from jdoodle.cpp:1:
+/usr/include/c++/7.2.0/bits/stl_function.h:376:20: note:   'const MyStruct' is not derived from 'const std::pair<_T1, _T2>'
+       { return __x > __y; }
+                ~~~~^~~~~
+In file included from /usr/include/c++/7.2.0/bits/stl_algobase.h:67:0,
+                 from /usr/include/c++/7.2.0/bits/char_traits.h:39,
+                 from /usr/include/c++/7.2.0/ios:40,
+                 from /usr/include/c++/7.2.0/ostream:38,
+                 from /usr/include/c++/7.2.0/iostream:39,
+                 from jdoodle.cpp:1:
+/usr/include/c++/7.2.0/bits/stl_iterator.h:317:5: note: candidate: template<class _Iterator> bool std::operator>(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
+     operator>(const reverse_iterator<_Iterator>& __x,
+     ^~~~~~~~
+/usr/include/c++/7.2.0/bits/stl_iterator.h:317:5: note:   template argument deduction/substitution failed:
+In file included from /usr/include/c++/7.2.0/string:48:0,
+                 from /usr/include/c++/7.2.0/bits/locale_classes.h:40,
+                 from /usr/include/c++/7.2.0/bits/ios_base.h:41,
+                 from /usr/include/c++/7.2.0/ios:42,
+                 from /usr/include/c++/7.2.0/ostream:38,
+                 from /usr/include/c++/7.2.0/iostream:39,
+                 from jdoodle.cpp:1:
+/usr/include/c++/7.2.0/bits/stl_function.h:376:20: note:   'const MyStruct' is not derived from 'const std::reverse_iterator<_Iterator>'
+       { return __x > __y; }
+                ~~~~^~~~~
+In file included from /usr/include/c++/7.2.0/bits/stl_algobase.h:67:0,
+                 from /usr/include/c++/7.2.0/bits/char_traits.h:39,
+                 from /usr/include/c++/7.2.0/ios:40,
+                 from /usr/include/c++/7.2.0/ostream:38,
+                 from /usr/include/c++/7.2.0/iostream:39,
+                 from jdoodle.cpp:1:
+/usr/include/c++/7.2.0/bits/stl_iterator.h:355:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator>(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
+     operator>(const reverse_iterator<_IteratorL>& __x,
+     ^~~~~~~~
+/usr/include/c++/7.2.0/bits/stl_iterator.h:355:5: note:   template argument deduction/substitution failed:
+In file included from /usr/include/c++/7.2.0/string:48:0,
+                 from /usr/include/c++/7.2.0/bits/locale_classes.h:40,
+                 from /usr/include/c++/7.2.0/bits/ios_base.h:41,
+                 from /usr/include/c++/7.2.0/ios:42,
+                 from /usr/include/c++/7.2.0/ostream:38,
+                 from /usr/include/c++/7.2.0/iostream:39,
+                 from jdoodle.cpp:1:
+/usr/include/c++/7.2.0/bits/stl_function.h:376:20: note:   'const MyStruct' is not derived from 'const std::reverse_iterator<_Iterator>'
+       { return __x > __y; }
+                ~~~~^~~~~
+In file included from /usr/include/c++/7.2.0/bits/stl_algobase.h:67:0,
+                 from /usr/include/c++/7.2.0/bits/char_traits.h:39,
+                 from /usr/include/c++/7.2.0/ios:40,
+                 from /usr/include/c++/7.2.0/ostream:38,
+                 from /usr/include/c++/7.2.0/iostream:39,
+                 from jdoodle.cpp:1:
+/usr/include/c++/7.2.0/bits/stl_iterator.h:1166:5: note: candidate: template<class _IteratorL, class _IteratorR> bool std::operator>(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)
+     operator>(const move_iterator<_IteratorL>& __x,
+     ^~~~~~~~
+/usr/include/c++/7.2.0/bits/stl_iterator.h:1166:5: note:   template argument deduction/substitution failed:
+In file included from /usr/include/c++/7.2.0/string:48:0,
+                 from /usr/include/c++/7.2.0/bits/locale_classes.h:40,
+                 from /usr/include/c++/7.2.0/bits/ios_base.h:41,
+                 from /usr/include/c++/7.2.0/ios:42,
+                 from /usr/include/c++/7.2.0/ostream:38,
+                 from /usr/include/c++/7.2.0/iostream:39,
+                 from jdoodle.cpp:1:
+/usr/include/c++/7.2.0/bits/stl_function.h:376:20: note:   'const MyStruct' is not derived from 'const std::move_iterator<_IteratorL>'
+       { return __x > __y; }
+                ~~~~^~~~~
+In file included from /usr/include/c++/7.2.0/bits/stl_algobase.h:67:0,
+                 from /usr/include/c++/7.2.0/bits/char_traits.h:39,
+                 from /usr/include/c++/7.2.0/ios:40,
+                 from /usr/include/c++/7.2.0/ostream:38,
+                 from /usr/include/c++/7.2.0/iostream:39,
+                 from jdoodle.cpp:1:
+/usr/include/c++/7.2.0/bits/stl_iterator.h:1172:5: note: candidate: template<class _Iterator> bool std::operator>(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)
+     operator>(const move_iterator<_Iterator>& __x,
+     ^~~~~~~~
+/usr/include/c++/7.2.0/bits/stl_iterator.h:1172:5: note:   template argument deduction/substitution failed:
+In file included from /usr/include/c++/7.2.0/string:48:0,
+                 from /usr/include/c++/7.2.0/bits/locale_classes.h:40,
+                 from /usr/include/c++/7.2.0/bits/ios_base.h:41,
+                 from /usr/include/c++/7.2.0/ios:42,
+                 from /usr/include/c++/7.2.0/ostream:38,
+                 from /usr/include/c++/7.2.0/iostream:39,
+                 from jdoodle.cpp:1:
+/usr/include/c++/7.2.0/bits/stl_function.h:376:20: note:   'const MyStruct' is not derived from 'const std::move_iterator<_IteratorL>'
+       { return __x > __y; }
+                ~~~~^~~~~
+
+ JDoodle - output Limit reached.
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.