Borderou de evaluare (job #2988910)

Utilizator StanSiBranBranSiStan StanSiBran Data 5 martie 2023 16:21:02
Problema Biti 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:28:36: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 28 | if (shifted.to_ulong() < (1 << (n + j))) { | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ main.cpp:31:35: error: no match for 'operator^' (operand types are 'std::bitset<2097152>' and 'int') 31 | overlaps[(shifted ^ (1 << n)).to_ulong()].set(i); | ~~~~~~~ ^ ~~~~~~~~ | | | | | int | std::bitset<2097152> In file included from /usr/include/c++/10/ios:42, from /usr/include/c++/10/istream:38, from /usr/include/c++/10/sstream:38, from /usr/include/c++/10/complex:45, 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/bits/ios_base.h:91:3: note: candidate: 'constexpr std::_Ios_Fmtflags std::operator^(std::_Ios_Fmtflags, std::_Ios_Fmtflags)' 91 | operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) | ^~~~~~~~ /usr/include/c++/10/bits/ios_base.h:91:27: note: no known conversion for argument 1 from 'std::bitset<2097152>' to 'std::_Ios_Fmtflags' 91 | operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/10/bits/ios_base.h:133:3: note: candidate: 'constexpr std::_Ios_Openmode std::operator^(std::_Ios_Openmode, std::_Ios_Openmode)' 133 | operator^(_Ios_Openmode __a, _Ios_Openmode __b) | ^~~~~~~~ /usr/include/c++/10/bits/ios_base.h:133:27: note: no known conversion for argument 1 from 'std::bitset<2097152>' to 'std::_Ios_Openmode' 133 | operator^(_Ios_Openmode __a, _Ios_Openmode __b) | ~~~~~~~~~~~~~~^~~ /usr/include/c++/10/bits/ios_base.h:173:3: note: candidate: 'constexpr std::_Ios_Iostate std::operator^(std::_Ios_Iostate, std::_Ios_Iostate)' 173 | operator^(_Ios_Iostate __a, _Ios_Iostate __b) | ^~~~~~~~ /usr/include/c++/10/bits/ios_base.h:173:26: note: no known conversion for argument 1 from 'std::bitset<2097152>' to 'std::_Ios_Iostate' 173 | operator^(_Ios_Iostate __a, _Ios_Iostate __b) | ~~~~~~~~~~~~~^~~ In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:66, from main.cpp:1: /usr/include/c++/10/bitset:1453:5: note: candidate: 'template<long unsigned int _Nb> std::bitset<_Nb> std::operator^(const std::bitset<_Nb>&, const std::bitset<_Nb>&)' 1453 | operator^(const bitset<_Nb>& __x, const bitset<_Nb>& __y) _GLIBCXX_NOEXCEPT | ^~~~~~~~ /usr/include/c++/10/bitset:1453:5: note: template argument deduction/substitution failed: main.cpp:31:44: note: mismatched types 'const std::bitset<_Nb>' and 'int' 31 | overlaps[(shifted ^ (1 << n)).to_ulong()].set(i); | ^ 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: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 std::_Expr<_Dom1, typename _Dom1::value_type>&, const std::_Expr<_Dom2, typename _Dom2::value_type>&)' 410 | _DEFINE_EXPR_BINARY_OPERATOR(^, __bitwise_xor) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?