secret.cpp: In function 'void precompute(int, int)':
secret.cpp:8:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
8 | int mid = l + r >> 1;
| ~~^~~
secret.cpp: At global scope:
secret.cpp:27:6: error: ambiguating new declaration of 'void Query(int, int)'
27 | void Query(int l, int r) {
| ^~~~~
In file included from secret.cpp:2:
secret.h:5:5: note: old declaration 'int Query(int, int)'
5 | int Query(int L, int R);
| ^~~~~
secret.cpp: In function 'void Query(int, int)':
secret.cpp:30:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
30 | int mid = lo + hi >> 1;
| ~~~^~~~
secret.cpp:32:17: error: return-statement with a value, in function returning 'void' [-fpermissive]
32 | return Secret(pref[mid][l], pref[mid+1][r]);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
secret.cpp:35:22: error: return-statement with a value, in function returning 'void' [-fpermissive]
35 | return pref[mid][l];
| ~~~~~~~~~~~^