Borderou de evaluare (job #842324)

Utilizator avatar bogdan_ Goian Bogdan bogdan_ IP ascuns
Problemă Tabela Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 16 nov. 2025 13:18:29 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:7:16: error: no match for 'operator^' (operand types are 'std::basic_ostream<char>' and 'int') 7 | fout<<(l-1)^(c-1); | ~~~~~~~~~~~^~~~~~ | | | | | int | std::basic_ostream<char> main.cpp:7:16: note: candidate: 'operator^(int, int)' (built-in) 7 | fout<<(l-1)^(c-1); | ~~~~~~~~~~~^~~~~~ main.cpp:7:16: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'int' In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/stdc++.h:52, from main.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bitset:1577:5: note: candidate: 'template<long unsigned int _Nb> std::bitset<_Nb> std::operator^(const bitset<_Nb>&, const bitset<_Nb>&)' 1577 | operator^(const bitset<_Nb>& __x, const bitset<_Nb>& __y) _GLIBCXX_NOEXCEPT | ^~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bitset:1577:5: note: template argument deduction/substitution failed: main.cpp:7:21: note: 'std::basic_ostream<char>' is not derived from 'const std::bitset<_Nb>' 7 | fout<<(l-1)^(c-1); | ^ In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/valarray:605, from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/x86_64-pc-linux-gnu/bits/stdc++.h:166: /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/valarray_after.h:410:5: note: candidate: 'template<class _Dom1, class _Dom2> std::_Expr<std::__detail::_BinClos<std::__bitwise_xor, std::_Expr, std::_Expr, _Dom1, _Dom2>, typename std::__fun<std::__bitwise_xor, typename _Dom1::value_type>::result_type> std::operator^(const _Expr<_Dom1, typename _Dom1::value_type>&, const _Expr<_Dom2, typename _Dom2::value_type>&)' 410 | _DEFINE_EXPR_BINARY_OPERATOR(^, struct std::__bitwise_xor) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/valarray_after.h:410:5: note: template argument deduction/substitution failed: main.cpp:7:21: note: 'std::basic_ostream<char>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 7 | fout<<(l-1)^(c-1); | ^ /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/valarray_after.h:410:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__bitwise_xor, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename std::__fun<std::__bitwise_xor, typename _Dom1::value_type>::result_type> std::operator^(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)' 410 | _DEFINE_EXPR_BINARY_OPERATOR(^, struct std::__bitwise_xor) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/valarray_after.h:410:5: note: template argument deduction/substitution failed: main.cpp:7:21: note: 'std::basic_ostream<char>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 7 | fout<<(l-1)^(c-1); | ^ /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/valarray_after.h:410:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__bitwise_xor, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__bitwise_xor, typename _Dom1::value_type>::result_type> std::operator^(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)' 410 | _DEFINE_EXPR_BINARY_OPERATOR(^, struct std::__bitwise_xor) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/valarray_after.h:410:5: note: template argument deduction/substitution failed: main.cpp:7:21: note: mismatched types 'const std::_Expr<_Dom1, typename _Dom1::value_type>' and 'int' 7 | fout<<(l-1)^(c-1); | ^ /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/valarray_after.h:410:5: note: candidate: 'template<class _Dom> std::_Expr<std::__detail::_BinClos<std::__bitwise_xor, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__bitwise_xor, typename _Dom1::value_type>::result_type> std::operator^(const _Expr<_Dom1, typename _Dom1::value_type>&, const valarray<typename _Dom::value_type>&)' 410 | _DEFINE_EXPR_BINARY_OPERATOR(^, struct std::__bitwise_xor) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/valarray_after.h:410:5: note: template argument deduction/substitution failed: main.cpp:7:21: note: 'std::basic_ostream<char>' is not derived from 'const std::_Expr<_Dom1, typename _Dom1::value_type>' 7 | fout<<(l-1)^(c-1); | ^