Borderou de evaluare (job #3334387)

Utilizator piaaaaaaaioana praj piaaaaaaa Data 17 ianuarie 2026 12:43:48
Problema Fold Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:27:37: error: no match for 'operator*' (operand types are 'long long int' and 'std::bitset<2001>') 27 | cnt += (1LL * a * (a - 1) / 2); | ~~~ ^ ~ | | | | | std::bitset<2001> | long long int In file included from /usr/include/c++/12.2.1/ccomplex:39, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54, from main.cpp:1: /usr/include/c++/12.2.1/complex:392:5: note: candidate: 'template<class _Tp> constexpr std::complex<_Tp> std::operator*(const complex<_Tp>&, const complex<_Tp>&)' 392 | operator*(const complex<_Tp>& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/12.2.1/complex:392:5: note: template argument deduction/substitution failed: main.cpp:27:39: note: mismatched types 'const std::complex<_Tp>' and 'long long int' 27 | cnt += (1LL * a * (a - 1) / 2); | ^ /usr/include/c++/12.2.1/complex:401:5: note: candidate: 'template<class _Tp> constexpr std::complex<_Tp> std::operator*(const complex<_Tp>&, const _Tp&)' 401 | operator*(const complex<_Tp>& __x, const _Tp& __y) | ^~~~~~~~ /usr/include/c++/12.2.1/complex:401:5: note: template argument deduction/substitution failed: main.cpp:27:39: note: mismatched types 'const std::complex<_Tp>' and 'long long int' 27 | cnt += (1LL * a * (a - 1) / 2); | ^ /usr/include/c++/12.2.1/complex:410:5: note: candidate: 'template<class _Tp> constexpr std::complex<_Tp> std::operator*(const _Tp&, const complex<_Tp>&)' 410 | operator*(const _Tp& __x, const complex<_Tp>& __y) | ^~~~~~~~ /usr/include/c++/12.2.1/complex:410:5: note: template argument deduction/substitution failed: main.cpp:27:39: note: 'std::bitset<2001>' is not derived from 'const std::complex<_Tp>' 27 | cnt += (1LL * a * (a - 1) / 2); | ^ In file included from /usr/include/c++/12.2.1/valarray:603, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:95: /usr/include/c++/12.2.1/bits/valarray_after.h:407:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__multiplies, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__multiplies, typename _Dom1::value_type>::result_type> std::operator*(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)' 407 | _DEFINE_EXPR_BINARY_OPERATOR(*, struct std::__multiplies) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/valarray_after.h:407:5: note: template argument deduction/substitution failed: main.cpp:27:39: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'long long int' 27 | cnt += (1LL * a * (a - 1) / 2); | ^ /usr/include/c++/12.2.1/bits/valarray_after.h:407:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__multiplies, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__multiplies, typename _Dom1::value_type>::result_type> std::operator*(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)' 407 | _DEFINE_EXPR_BINARY_OPERATOR(*, struct std::__multiplies) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/valarray_after.h:407:5: note: template argument deduction/substitution failed: main.cpp:27:39: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'long long int' 27 | cnt += (1LL * a * (a - 1) / 2); | ^ /usr/include/c++/12.2.1/bits/valarray_after.h:407:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__multiplies, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__multiplies, typename _Dom1::value_type>::result_type> std::operator*(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 407 | _DEFINE_EXPR_BINARY_OPERATOR(*, struct std::__multiplies) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?