0_0_22219132_12559.cpp: In function 'int query(int, int, int)':
0_0_22219132_12559.cpp:41:2: error: expected primary-expression before 'int'
int res = 0, mid = (left + right) / 2;
^
0_0_22219132_12559.cpp:42:11: error: 'mid' was not declared in this scope
if (a <= mid)
^
0_0_22219132_12559.cpp:43:3: error: 'res' was not declared in this scope
res |= query(k * 2, left, mid);
^
0_0_22219132_12559.cpp:44:10: error: 'mid' was not declared in this scope
if (b > mid)
^
0_0_22219132_12559.cpp:45:3: error: 'res' was not declared in this scope
res |= query(k * 2 + 1, mid + 1, right);
^
0_0_22219132_12559.cpp:46:9: error: 'res' was not declared in this scope
return res;
^
|