Borderou de evaluare (job #2826414)

Utilizator EckchartZgarcea Robert-Andrei Eckchart Data 5 ianuarie 2022 11:50:25
Problema Tigri Status done
Runda Algoritmiada 2022 Runda 1 Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'BigNr operator+(BigNr, const BigNr&)': main.cpp:142:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 142 | if (carry = res.big_nr[i] >= BASE) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'BigNr operator-(BigNr, const BigNr&)': main.cpp:155:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 155 | if (carry = res.big_nr[i] < 0) | ~~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:269:23: error: no match for 'operator/' (operand types are 'BigNr' and 'BigNr') 269 | if (!(lei / cur_lei < cur_tigers)) | ~~~ ^ ~~~~~~~ | | | | BigNr BigNr In file included from /usr/include/c++/10/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/10/complex:421:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator/(const std::complex<_Tp>&, const std::complex<_Tp>&)' 421 | operator/(const complex<_Tp>& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/10/complex:421:5: note: template argument deduction/substitution failed: main.cpp:269:25: note: 'BigNr' is not derived from 'const std::complex<_Tp>' 269 | if (!(lei / cur_lei < cur_tigers)) | ^~~~~~~ In file included from /usr/include/c++/10/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/10/complex:430:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator/(const std::complex<_Tp>&, const _Tp&)' 430 | operator/(const complex<_Tp>& __x, const _Tp& __y) | ^~~~~~~~ /usr/include/c++/10/complex:430:5: note: template argument deduction/substitution failed: main.cpp:269:25: note: 'BigNr' is not derived from 'const std::complex<_Tp>' 269 | if (!(lei / cur_lei < cur_tigers)) | ^~~~~~~ In file included from /usr/include/c++/10/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/10/complex:439:5: note: candidate: 'template<class _Tp> std::complex<_Tp> std::operator/(const _Tp&, const std::complex<_Tp>&)' 439 | operator/(const _Tp& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/10/complex:439:5: note: template argument deduction/substitution failed: main.cpp:269:25: note: 'BigNr' is not derived from 'const std::complex<_Tp>' 269 | if (!(lei / cur_lei < cur_tigers)) | ^~~~~~~ In file included from /usr/include/c++/10/valarray:603, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:95, from main.cpp:1: /usr/include/c++/10/bits/valarray_after.h:408:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__divides, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__divides, typename _Dom1::value_type>::result_type> std::operator/(const std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)' 408 | _DEFINE_EXPR_BINARY_OPERATOR(/, __divides) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?