secret.cpp: In function 'int get(int, int, int, int, int)':
secret.cpp:33:40: error: invalid types 'int[int]' for array subscript
33 | if (v > mid) rt = Secret(rt, rt[lv][v]);
| ^
secret.cpp: At global scope:
secret.cpp:5:11: error: expected ',' or '...' before numeric constant
5 | #define N 1005
| ^~~~
secret.cpp:40:15: note: in expansion of macro 'N'
40 | void Init(int N, int A[]){
| ^
secret.cpp: In function 'void Init(int)':
secret.cpp:42:17: error: too few arguments to function 'void divi(int, int, int, int*)'
42 | divi(0, 1, n);
| ^
secret.cpp:10:6: note: declared here
10 | void divi(int lv, int l, int r, int A[]){
| ^~~~