0_0_22048015_7780.cpp: In function 'int getblock(int)':
0_0_22048015_7780.cpp:10:57: error: expected ';' before '}' token
inline int getblock(int pos) {return (pos - 1) / siz + 1}
^
0_0_22048015_7780.cpp: In function 'void reset(int)':
0_0_22048015_7780.cpp:14:17: error: invalid conversion from 'int*' to 'int' [-fpermissive]
a[i] = ed[a[i]];
^
0_0_22048015_7780.cpp:15:17: error: 'block' was not declared in this scope
--b[block(a[i])][no];
^
0_0_22048015_7780.cpp: In function 'void build(int)':
0_0_22048015_7780.cpp:22:17: error: 'block' was not declared in this scope
++b[block(a[i])][no];
^
0_0_22048015_7780.cpp: In function 'void prepare()':
0_0_22048015_7780.cpp:34:15: error: two or more data types in declaration of 'i'
for (int int i = 1; i <= tot; ++i) build(i);
^
0_0_22048015_7780.cpp:34:22: error: 'i' was not declared in this scope
for (int int i = 1; i <= tot; ++i) build(i);
^
0_0_22048015_7780.cpp: In function 'void modify(int, int, int, int)':
0_0_22048015_7780.cpp:38:17: error: 'block' was not declared in this scope
int X = block(x), Y = block(y), L = block(l), R = block(r);
^
0_0_22048015_7780.cpp:39:8: error: 'L' was not declared in this scope
reset(L);
^
0_0_22048015_7780.cpp:44:10: error: 'R' was not declared in this scope
if (L < R) {
^
0_0_22048015_7780.cpp: In function 'int query(int, int, int)':
0_0_22048015_7780.cpp:55:17: error: 'block' was not declared in this scope
int K = block(k), L = block(l), R = block(r);
^
0_0_22048015_7780.cpp:56:27: error: 'L' was not declared in this scope
for (int i = l, ed = min(L * siz, r); i <= ed; ++i) {
^
0_0_22048015_7780.cpp:60:6: error: 'L' was not declared in this scope
if (L < R) {
^
0_0_22048015_7780.cpp:60:10: error: 'R' was not declared in this scope
if (L < R) {
^
0_0_22048015_7780.cpp:68:19: error: 'L' was not declared in this scope
ret += tb[i] + (L < R ? b[i][R - 1] - b[i][L] : 0);
^
0_0_22048015_7780.cpp:68:23: error: 'R' was not declared in this scope
ret += tb[i] + (L < R ? b[i][R - 1] - b[i][L] : 0);
^
0_0_22048015_7780.cpp:82:27: error: 'L' was not declared in this scope
for (int i = l, ed = min(L * siz, r); i <= ed; ++i) --tc[a[i]];
^
0_0_22048015_7780.cpp:83:6: error: 'L' was not declared in this scope
if (L < R) {
^
0_0_22048015_7780.cpp:83:10: error: 'R' was not declared in this scope
if (L < R) {
^
|