Problem xortree
User PlayVoltz
Submission Time 2024-03-13 23:15:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

In file included from /usr/include/c++/9/bits/stl_map.h:63,
from /usr/include/c++/9/map:61,
from xortree.cpp:2:
/usr/include/c++/9/tuple: In instantiation of ‘constexpr const size_t std::tuple_size_v<long long int>’:
/usr/include/c++/9/tuple:1693:24: required from ‘constexpr decltype(auto) std::apply(_Fn&&, _Tuple&&) [with _Fn = int; _Tuple = long long int&]’
xortree.cpp:53:23: required from here
/usr/include/c++/9/tuple:1277:29: error: incomplete type ‘std::tuple_size<long long int>’ used in nested name specifier
1277 | inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value;
| ^~~~~~~~~~~~
xortree.cpp: In function ‘int main()’:
xortree.cpp:88:7: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
88 | read(h), read(q);
| ^
xortree.cpp:26:16: note: initializing argument 1 of ‘void read(int&)’