0_0_38316018_7621.cpp:14:26: error: 'k' was not declared in this scope
int rt[N << 2], c[K], ls[k], rs[K];
^
0_0_38316018_7621.cpp: In function 'void update(int, int, int&)':
0_0_38316018_7621.cpp:5:22: error: 'ls' was not declared in this scope
#define lson l, mid, ls[id]
^
0_0_38316018_7621.cpp:22:23: note: in expansion of macro 'lson'
if (v <= mid) update(lson);
^
0_0_38316018_7621.cpp:24:16: error: 'ls' was not declared in this scope
c[id] = max(c[ls[id]], c[rs[id]]);
^
0_0_38316018_7621.cpp: In function 'int query(int, int, int)':
0_0_38316018_7621.cpp:5:22: error: 'ls' was not declared in this scope
#define lson l, mid, ls[id]
^
0_0_38316018_7621.cpp:42:27: note: in expansion of macro 'lson'
if (l2 <= mid) s = query(lson);
^
0_0_38316018_7621.cpp: In function 'int main()':
0_0_38316018_7621.cpp:58:10: error: 'ls' was not declared in this scope
memset(ls, 0, sizeof ls);
^
|