Borderou de evaluare (job #3189131)
Utilizator | Data | 4 ianuarie 2024 15:46:50 | |
---|---|---|---|
Problema | Expr | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'std::string eval(std::string)':
main.cpp:106:28: error: no match for 'operator==' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} and 'char')
106 | while (toks.back() == ')')
| ~~~~~~~~~~~ ^~ ~~~
| | |
| | char
| __gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
from /usr/include/c++/12.2.1/bits/allocator.h:46,
from /usr/include/c++/12.2.1/string:41,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/new_allocator.h:196:9: note: candidate: 'template<class _Up> constexpr bool std::operator==(const __new_allocator<char>&, const __new_allocator<_Tp>&)' (reversed)
196 | operator==(const __new_allocator&, const __new_allocator<_Up>&)
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/new_allocator.h:196:9: note: template argument deduction/substitution failed:
main.cpp:106:31: note: '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'const std::__new_allocator<_Tp>'
106 | while (toks.back() == ')')
| ^~~
/usr/include/c++/12.2.1/bits/allocator.h:219:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator==(const allocator<_CharT>&, const allocator<_T2>&)' (reversed)
219 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/allocator.h:219:5: note: template argument deduction/substitution failed:
main.cpp:106:31: note: mismatched types 'const std::allocator<_CharT>' and 'char'
106 | while (toks.back() == ')')
| ^~~
In file included from /usr/include/c++/12.2.1/string:47:
/usr/include/c++/12.2.1/bits/stl_iterator.h:530:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorR>&) requires requires{{std::operator==::__x->base() == std::operator==::__y->base()} -> decltype(auto) [requires std::convertible_to<<placeholder>, bool>];}' (reversed)
530 | operator==(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_iterator.h:530:5: note: template argument deduction/substitution failed:
main.cpp:106:31: note: mismatched types 'const std::reverse_iterator<_IteratorL>' and 'char'
106 | while (toks.back() == ')')
| ^~~
/usr/include/c++/12.2.1/bits/stl_iterator.h:1656:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator==(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&) requires requires{{std::operator==::__x->base() == std::operator==::__y->base()} -> decltype(auto) [requires std::convertible_to<<placeholder>, bool>];}' (reversed)
1656 | operator==(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_iterator.h:1656:5: note: template argument deduction/substitution failed:
main.cpp:106:31: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'char'
106 | while (toks.back() == ')')
| ^~~
In file included from /usr/include/c++/12.2.1/bits/basic_string.h:47,
from /usr/include/c++/12.2.1/string:53:
/usr/include/c++/12.2.1/string_view:546:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator==(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' (reversed)
546 | operator==(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !