secret.cpp: In function 'void process(int, int, int*)':
secret.cpp:13:5: error: 'curr' was not declared in this scope
13 | curr = pre[m][m];
| ^~~~
secret.cpp:14:27: error: 'l' was not declared in this scope
14 | for(int i = m-1; i >= l; i--) {
| ^
secret.cpp:18:27: error: 'r' was not declared in this scope
18 | for(int i = m+2; i <= r; i++) {
| ^
secret.cpp:22:18: error: 'r' was not declared in this scope
22 | process(m+1, r, A);
| ^
secret.cpp: In function 'int Query(int, int)':
secret.cpp:49:1: warning: control reaches end of non-void function [-Wreturn-type]
49 | }
| ^