Borderou de evaluare (job #783527)

Utilizator avatar andrei._bdr Andrei andrei._bdr IP ascuns
Problemă Adlic (clasa a 9-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 9 aug. 2024 12:37:56 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:37:37: error: no match for 'operator!=' (operand types are 'std::_Rb_tree_const_iterator<int>' and 'int') 37 | if(it == uc.end() && it != v[i]) | ~~ ^~ ~~~~ | | | | | int | std::_Rb_tree_const_iterator<int> In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/regex:68, from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:181, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1132:5: note: candidate: 'template<class _BiIter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1132 | operator!=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1132:5: note: template argument deduction/substitution failed: main.cpp:37:43: note: 'std::_Rb_tree_const_iterator<int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 37 | if(it == uc.end() && it != v[i]) | ^ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1212:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&, const sub_match<_BiIter>&)' 1212 | operator!=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1212:5: note: template argument deduction/substitution failed: main.cpp:37:43: note: 'std::_Rb_tree_const_iterator<int>' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 37 | if(it == uc.end() && it != v[i]) | ^ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1305:5: note: candidate: 'template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>&)' 1305 | operator!=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1305:5: note: template argument deduction/substitution failed: main.cpp:37:43: note: 'std::_Rb_tree_const_iterator<int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 37 | if(it == uc.end() && it != v[i]) | ^ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1379:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1379 | operator!=(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1379:5: note: template argument deduction/substitution failed: main.cpp:37:43: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int' 37 | if(it == uc.end() && it != v[i]) | ^ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1473:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1473 | operator!=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1473:5: note: template argument deduction/substitution failed: main.cpp:37:43: note: 'std::_Rb_tree_const_iterator<int>' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 37 | if(it == uc.end() && it != v[i]) | ^ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1547:5: note: candidate: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type&, const sub_match<_BiIter>&)' 1547 | operator!=(typename iterator_traits<_Bi_iter>::value_type const& __lhs, | ^~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/bits/regex.h:1547:5: note: template argument deduction/substitution failed: main.cpp:37:43: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'int'