secret.cpp: In function 'void precalculate(int, int)':
secret.cpp:18:38: error: 'm' was not declared in this scope
18 | if (l < mid) precalculate(l, m);
| ^
secret.cpp:19:17: error: 'm' was not declared in this scope
19 | if (r > m + 1) precalculate(m + 1, r);
| ^
secret.cpp: In function 'int Query(int, int)':
secret.cpp:29:20: error: expected unqualified-id before 'int'
29 | int l = 0, int r = n - 1;
| ^~~
secret.cpp:30:21: error: 'r' was not declared in this scope
30 | while (l != r){
| ^
secret.cpp:35:26: error: 'm' was not declared in this scope
35 | else r = m;
| ^
secret.cpp:37:24: error: 'r' was not declared in this scope
37 | return pref[l][r];
| ^