Borderou de evaluare (job #810990)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Numar3 | Compilator | cpp-32 |
Rundă | lasm_22_02_2025_clasa10_11 | Status | evaluat |
Dată | 22 feb. 2025 17:39:47 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'BigInteger BigInteger::operator%(const BigInteger&) const':
main.cpp:114:29: error: no match for 'operator+' (operand types are 'BigInteger' and 'const BigInteger')
114 | result = result + other;
| ~~~~~~ ^ ~~~~~
| | |
| | const BigInteger
| BigInteger
In file included from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/string:48,
from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/locale_classes.h:40,
from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/ios_base.h:41,
from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/ios:44,
from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/istream:40,
from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/fstream:40,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h:627:5: note: candidate: 'template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename reverse_iterator<_Iterator>::difference_type, const reverse_iterator<_Iterator>&)'
627 | operator+(typename reverse_iterator<_Iterator>::difference_type __n,
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h:627:5: note: template argument deduction/substitution failed:
main.cpp:114:31: note: 'const BigInteger' is not derived from 'const std::reverse_iterator<_Iterator>'
114 | result = result + other;
| ^~~~~
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h:1798:5: note: candidate: 'template<class _Iterator> std::move_iterator<_IteratorL> std::operator+(typename move_iterator<_IteratorL>::difference_type, const move_iterator<_IteratorL>&)'
1798 | operator+(typename move_iterator<_Iterator>::difference_type __n,
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_iterator.h:1798:5: note: template argument deduction/substitution failed:
main.cpp:114:31: note: 'const BigInteger' is not derived from 'const std::move_iterator<_IteratorL>'
114 | result = result + other;
| ^~~~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/string:54:
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/basic_string.h:3598:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Alloc>&, const __cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
3598 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/basic_string.h:3598:5: note: template argument deduction/substitution failed:
main.cpp:114:31: note: 'BigInteger' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
114 | result = result + other;
| ^~~~~
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/basic_string.h:3616:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
3616 | operator+(const _CharT* __lhs,
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/basic_string.h:3616:5: note: template argument deduction/substitution failed:
main.cpp:114:31: note: mismatched types 'const _CharT*' and 'BigInteger'
114 | result = result + other;
| ^~~~~
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/basic_string.h:3635:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, const __cxx11::basic_string<_CharT, _Traits, _Alloc>&)'
3635 | operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/basic_string.h:3635:5: note: template argument deduction/substitution failed:
main.cpp:114:31: note: 'const BigInteger' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>'
114 | result = result + other;
| ^~~~~