QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#713662#7181. Graph CutsHuangHanShengCompile Error//C++201.8kb2024-11-05 20:13:112024-11-05 20:13:11

Details

answer.code: In function ‘void promod()’:
answer.code:57:18: error: no match for ‘operator^=’ (operand types are ‘std::bitset<100005> [100005]’ and ‘std::bitset<100005>’)
   57 |             mask ^= arr[idx];
      |             ~~~~~^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:176,
                 from answer.code:2:
/usr/include/c++/13/future:182:18: note: candidate: ‘std::launch& std::operator^=(launch&, launch)’
  182 |   inline launch& operator^=(launch& __x, launch __y) noexcept
      |                  ^~~~~~~~
/usr/include/c++/13/future:182:37: note:   no known conversion for argument 1 from ‘std::bitset<100005> [100005]’ to ‘std::launch&’
  182 |   inline launch& operator^=(launch& __x, launch __y) noexcept
      |                             ~~~~~~~~^~~
In file included from /usr/include/c++/13/format:39,
                 from /usr/include/c++/13/bits/chrono_io.h:39,
                 from /usr/include/c++/13/chrono:3330,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:172:
/usr/include/c++/13/charconv:665:3: note: candidate: ‘constexpr std::chars_format& std::operator^=(chars_format&, chars_format)’
  665 |   operator^=(chars_format& __lhs, chars_format __rhs) noexcept
      |   ^~~~~~~~
/usr/include/c++/13/charconv:665:28: note:   no known conversion for argument 1 from ‘std::bitset<100005> [100005]’ to ‘std::chars_format&’
  665 |   operator^=(chars_format& __lhs, chars_format __rhs) noexcept
      |              ~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/13/streambuf:43,
                 from /usr/include/c++/13/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/13/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:54:
/usr/include/c++/13/bits/ios_base.h:190:3: note: candidate: ‘const std::_Ios_Iostate& std::operator^=(_Ios_Iostate&, _Ios_Iostate)’
  190 |   operator^=(_Ios_Iostate& __a, _Ios_Iostate __b)
      |   ^~~~~~~~
/usr/include/c++/13/bits/ios_base.h:190:28: note:   no known conversion for argument 1 from ‘std::bitset<100005> [100005]’ to ‘std::_Ios_Iostate&’
  190 |   operator^=(_Ios_Iostate& __a, _Ios_Iostate __b)
      |              ~~~~~~~~~~~~~~^~~
/usr/include/c++/13/bits/ios_base.h:150:3: note: candidate: ‘const std::_Ios_Openmode& std::operator^=(_Ios_Openmode&, _Ios_Openmode)’
  150 |   operator^=(_Ios_Openmode& __a, _Ios_Openmode __b)
      |   ^~~~~~~~
/usr/include/c++/13/bits/ios_base.h:150:29: note:   no known conversion for argument 1 from ‘std::bitset<100005> [100005]’ to ‘std::_Ios_Openmode&’
  150 |   operator^=(_Ios_Openmode& __a, _Ios_Openmode __b)
      |              ~~~~~~~~~~~~~~~^~~
/usr/include/c++/13/bits/ios_base.h:107:3: note: candidate: ‘const std::_Ios_Fmtflags& std::operator^=(_Ios_Fmtflags&, _Ios_Fmtflags)’
  107 |   operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
      |   ^~~~~~~~
/usr/include/c++/13/bits/ios_base.h:107:29: note:   no known conversion for argument 1 from ‘std::bitset<100005> [100005]’ to ‘std::_Ios_Fmtflags&’
  107 |   operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b)
      |              ~~~~~~~~~~~~~~~^~~
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:41:
/usr/include/c++/13/cstddef:177:3: note: candidate: ‘constexpr std::byte& std::operator^=(byte&, byte)’
  177 |   operator^=(byte& __l, byte __r) noexcept
      |   ^~~~~~~~
/usr/include/c++/13/cstddef:177:20: note:   no known conversion for argument 1 from ‘std::bitset<100005> [100005]’ to ‘std::byte&’
  177 |   operator^=(byte& __l, byte __r) noexcept
      |              ~~~~~~^~~
answer.code:65:24: error: request for member ‘_Find_first’ in ‘mask’, which is of non-class type ‘std::bitset<100005> [100005]’
   65 |         int idx = mask._Find_first();
      |                        ^~~~~~~~~~~
answer.code:71:14: error: request for member ‘reset’ in ‘mask’, which is of non-class type ‘std::bitset<100005> [100005]’
   71 |         mask.reset(idx);
      |              ^~~~~