0_0_30194207_14264.cpp:3:32: error: '_L' was not declared in this scope
int add(int rt, int x, int L = _L, int R = _R)
^
0_0_30194207_14264.cpp:3:44: error: '_R' was not declared in this scope
int add(int rt, int x, int L = _L, int R = _R)
^
0_0_30194207_14264.cpp: In function 'int add(int, int, int, int)':
0_0_30194207_14264.cpp:5:19: error: '_new' was not declared in this scope
int nr = _new();
^
0_0_30194207_14264.cpp:6:5: error: '_pst' was not declared in this scope
_pst[nr] = _pst[rt];
^
0_0_30194207_14264.cpp: At global scope:
0_0_30194207_14264.cpp:24:40: error: '_L' was not declared in this scope
int qry(int lr, int rr, int k, int L = _L, int R = _R)
^
0_0_30194207_14264.cpp:24:52: error: '_R' was not declared in this scope
int qry(int lr, int rr, int k, int L = _L, int R = _R)
^
0_0_30194207_14264.cpp: In function 'int qry(int, int, int, int, int)':
0_0_30194207_14264.cpp:32:16: error: '_pst' was not declared in this scope
return _pst[rr].cnt - _pst[lr].cnt;
^
0_0_30194207_14264.cpp:36:16: error: '_pst' was not declared in this scope
res += qry(_pst[lr].lc, _pst[rr].lc, k, L, Mid);
^
0_0_30194207_14264.cpp: At global scope:
0_0_30194207_14264.cpp:41:1: error: expected declaration before '}' token
} // namespace PST
^
|