answer.code: In function ‘matr mul(const matr&, const matr&)’:
answer.code:38:20: error: ‘k’ was not declared in this scope
38 | res[i][k] = (l[i]&R[j]).count()&1;
| ^
answer.code: In function ‘matr read()’:
answer.code:84:22: error: no match for ‘operator^=’ (operand types are ‘std::bitset<65>::reference’ and ‘int’)
84 | res[L][i]^=1;
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:176,
from answer.code:1:
/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<65>::reference’ 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<65>::reference’ 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<65>::reference’ 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<65>::reference’ 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<65>::reference’ 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<65>::reference’ to ‘std::byte&’
177 | operator^=(byte& __l, byte __r) noexcept
| ~~~~~~^~~
answer.code: At global scope:
answer.code:90:8: error: ‘T’ does not name a type
90 | static T unit = UNIT();
| ^
answer.code:95:29: error: ‘unit’ was not declared in this scope; did you mean ‘uint’?
95 | Tree(int n = 0, T def = unit) : s(2*n, def), n(n) {}
| ^~~~
| uint
answer.code: In member function ‘Tree::T Tree::query(int, int)’:
answer.code:101:16: error: ‘unit’ was not declared in this scope; did you mean ‘uint’?
101 | T ra = unit, rb = unit;
| ^~~~
| uint
answer.code:104:24: error: ‘rb’ was not declared in this scope; did you mean ‘ra’?
104 | if (e % 2) rb = f(s[--e], rb);
| ^~
| ra
answer.code:106:22: error: ‘rb’ was not declared in this scope; did you mean ‘ra’?
106 | return f(ra, rb);
| ^~
| ra