Job 19713

Owner
Râpeanu George-Alexandru
Problem
Peculiar Function
Source
0.54KB
Result
Compile error (Non-zero exit status: 1)

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:19:21: error: no match for 'operator|=' (operand types are 'std::bitset<524289u>::reference' and 'std::bitset<524289u>::reference')
                 B[i]|=B[i-(1<<j)];
                     ^
prog.cpp:19:21: note: candidates are:
In file included from /usr/include/c++/4.9/ios:42:0,
                 from /usr/include/c++/4.9/ostream:38,
                 from /usr/include/c++/4.9/iostream:39,
                 from prog.cpp:1:
/usr/include/c++/4.9/bits/ios_base.h:91:3: note: const std::_Ios_Fmtflags& std::operator|=(std::_Ios_Fmtflags&, std::_Ios_Fmtflags)
   operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
   ^
/usr/include/c++/4.9/bits/ios_base.h:91:3: note:   no known conversion for argument 1 from 'std::bitset<524289u>::reference' to 'std::_Ios_Fmtflags&'
/usr/include/c++/4.9/bits/ios_base.h:131:3: note: const std::_Ios_Openmode& std::operator|=(std::_Ios_Openmode&, std::_Ios_Openmode)
   operator|=(_Ios_Openmode& __a, _Ios_Openmode __b)
   ^
/usr/include/c++/4.9/bits/ios_base.h:131:3: note:   no known conversion for argument 1 from 'std::bitset<524289u>::reference' to 'std::_Ios_Openmode&'
/usr/include/c++/4.9/bits/ios_base.h:169:3: note: const std::_Ios_Iostate& std::operator|=(std::_Ios_Iostate&, std::_Ios_Iostate)
   operator|=(_Ios_Iostate& __a, _Ios_Iostate __b)
   ^
/usr/include/c++/4.9/bits/ios_base.h:169:3: note:   no known conversion for argument 1 from 'std::bitset<524289u>::reference' to 'std::_Ios_Iostate&'

Questions?

Sponsors Gold