/in/foo.cc: In function 'void ST(int)':
/in/foo.cc:9:22: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
for(int i=1;i+(1<<j-1)-1<=n;++i)
~^~
/in/foo.cc:10:38: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
mx[i][j]=max(mx[i][j-1],mx[i+(1<<j-1)][j-1]);
~^~
/in/foo.cc: In function 'void findp(int&, int, int)':
/in/foo.cc:22:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=L+R>>1;
~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:14:19: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
int maxlog=log2(r-l+1);
~^~
/in/foo.cc:38:7: note: 'p' was declared here
int p;findp(p,l+1,r+1);
^