Borderou de evaluare (job #860383)

Utilizator avatar butnarciuc.dragos Butnarciuc Dragos butnarciuc.dragos IP ascuns
Problemă Text (clasa 9) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 19 mai 2026 15:48:02 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:16:16: error: conflicting declaration 'std::string cuv' 16 | string cuv = ""; | ^~~ main.cpp:15:24: note: previous declaration as 'std::vector<std::__cxx11::basic_string<char> > cuv' 15 | vector<string> cuv; | ^~~ main.cpp:19:25: error: no match for 'operator!=' (operand types are 'std::vector<std::__cxx11::basic_string<char> >' and 'const char [1]') 19 | if (cuv != "") { | ~~~ ^~ ~~ | | | | | const char [1] | std::vector<std::__cxx11::basic_string<char> > main.cpp:19:25: note: there are 93 candidates 19 | if (cuv != "") { | ~~~~^~~~~ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/regex:70, from /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/x86_64-pc-linux-gnu/bits/stdc++.h:184, from main.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/regex.h:1154:5: note: candidate 1: 'template<class _BiIter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const sub_match<_BiIter>&)' 1154 | operator!=(const sub_match<_BiIter>& __lhs, const sub_match<_BiIter>& __rhs) | ^~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/regex.h:1154:5: note: template argument deduction/substitution failed: main.cpp:19:28: note: 'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 19 | if (cuv != "") { | ^~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/regex.h:1234:5: note: candidate 2: '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>&)' 1234 | operator!=(const __sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>& __lhs, | ^~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/regex.h:1234:5: note: template argument deduction/substitution failed: main.cpp:19:28: note: 'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'std::__cxx11::__sub_match_string<_Bi_iter, _Ch_traits, _Ch_alloc>' 19 | if (cuv != "") { | ^~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/regex.h:1327:5: note: candidate 3: '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>&)' 1327 | operator!=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/regex.h:1327:5: note: template argument deduction/substitution failed: main.cpp:19:28: note: 'std::vector<std::__cxx11::basic_string<char> >' is not derived from 'const std::__cxx11::sub_match<_BiIter>' 19 | if (cuv != "") { | ^~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/regex.h:1401:5: note: candidate 4: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const typename std::iterator_traits<_Iter>::value_type*, const sub_match<_BiIter>&)' 1401 | operator!=(typename iterator_traits<_Bi_iter>::value_type const* __lhs, | ^~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/regex.h:1401:5: note: template argument deduction/substitution failed: main.cpp:19:28: note: mismatched types 'const std::__cxx11::sub_match<_BiIter>' and 'const char [1]' 19 | if (cuv != "") { | ^~ /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/regex.h:1495:5: note: candidate 5: 'template<class _Bi_iter> bool std::__cxx11::operator!=(const sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*)' 1495 | operator!=(const sub_match<_Bi_iter>& __lhs, | ^~~~~~~~