Borderou de evaluare (job #755517)

Utilizator avatar AndreiEsteNebun Mateescu Andrei AndreiEsteNebun IP ascuns
Problemă Seism (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 15 ian. 2024 18:02:42 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:125:81: error: no match for 'operator>=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::pair<bool, int> >, std::pair<bool, int> >::value_type' {aka 'std::pair<bool, int>'} and 'int') 125 | if(secvente[k].first == 0 && secvente[k].second >= 2 && secvente[k - 2] >= 2) maxx = max(maxx, secvente[k].second - 2 + secvente[k - 1].second); In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/string:48, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/locale_classes.h:40, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/ios_base.h:41, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ios:44, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/ostream:40, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/iostream:41, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:483:5: note: candidate: 'template<class _Iterator> bool std::operator>=(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)' 483 | operator>=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:483:5: note: template argument deduction/substitution failed: main.cpp:125:84: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<bool, int> >, std::pair<bool, int> >::value_type' {aka 'std::pair<bool, int>'} is not derived from 'const std::reverse_iterator<_Iterator>' 125 | if(secvente[k].first == 0 && secvente[k].second >= 2 && secvente[k - 2] >= 2) maxx = max(maxx, secvente[k].second - 2 + secvente[k - 1].second); | ^ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:527:5: note: candidate: 'template<class _IteratorL, class _IteratorR> bool std::operator>=(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)' 527 | operator>=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:527:5: note: template argument deduction/substitution failed: main.cpp:125:84: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<bool, int> >, std::pair<bool, int> >::value_type' {aka 'std::pair<bool, int>'} is not derived from 'const std::reverse_iterator<_Iterator>' 125 | if(secvente[k].first == 0 && secvente[k].second >= 2 && secvente[k - 2] >= 2) maxx = max(maxx, secvente[k].second - 2 + secvente[k - 1].second); | ^ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:1735:5: note: candidate: 'template<class _IteratorL, class _IteratorR> bool std::operator>=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' 1735 | operator>=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:1735:5: note: template argument deduction/substitution failed: main.cpp:125:84: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<bool, int> >, std::pair<bool, int> >::value_type' {aka 'std::pair<bool, int>'} is not derived from 'const std::move_iterator<_IteratorL>' 125 | if(secvente[k].first == 0 && secvente[k].second >= 2 && secvente[k - 2] >= 2) maxx = max(maxx, secvente[k].second - 2 + secvente[k - 1].second); | ^ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:1791:5: note: candidate: 'template<class _Iterator> bool std::operator>=(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' 1791 | operator>=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_iterator.h:1791:5: note: template argument deduction/substitution failed: main.cpp:125:84: note: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<bool, int> >, std::pair<bool, int> >::value_type' {aka 'std::pair<bool, int>'} is not derived from 'const std::move_iterator<_IteratorL>' 125 | if(secvente[k].first == 0 && secvente[k].second >= 2 && secvente[k - 2] >= 2) maxx = max(maxx, secvente[k].second - 2 + secvente[k - 1].second); | ^ In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_algobase.h:64, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/string:51: /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_pair.h:860:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator>=(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' 860 | operator>=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/stl_pair.h:860:5: note: template argument deduction/substitution failed: main.cpp:125:84: note: mismatched types 'const std::pair<_T1, _T2>' and 'int' 125 | if(secvente[k].first == 0 && secvente[k].second >= 2 && secvente[k - 2] >= 2) maxx = max(maxx, secvente[k].second - 2 + secvente[k - 1].second); | ^ In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/string:54: /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/basic_string.h:3940:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator>=(const __cxx11::basic_string<_CharT, _Traits, _Alloc>&, const __cxx11::basic_string<_CharT, _Traits, _Alloc>&)' 3940 | operator>=(const basic_string<_CharT, _Traits, _Alloc>& __lhs,