Problem xortree
User YSH2020
Submission Time 2025-12-08 14:26:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xortree.cpp: In member function ‘long long int node::qry(long long int, long long int, long long int)’:
xortree.cpp:52:31: error: no matching function for call to ‘node::qry(long long int&, long long int&)’
52 | if (y<=m) return l->qry(x,y);
| ^
xortree.cpp:42:6: note: candidate: ‘long long int node::qry(long long int, long long int, long long int)’
42 | int qry(int x, int y, int xorval) {
| ^~~
xortree.cpp:42:6: note: candidate expects 3 arguments, 2 provided
xortree.cpp:53:38: error: no matching function for call to ‘node::qry(long long int&, long long int&)’
53 | else if (x>=m+1) return r->qry(x,y);
| ^
xortree.cpp:42:6: note: candidate: ‘long long int node::qry(long long int, long long int, long long int)’
42 | int qry(int x, int y, int xorval) {
| ^~~
xortree.cpp:42:6: note: candidate expects 3 arguments,