Accepted
/in/foo.cc: In function 'int main()': /in/foo.cc:16:76: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] rep(j,1,18) for(int i=1;i+(1<<j)-1<=n;i++) f[i][j]=max(f[i][j-1],f[i+(1<<j-1)][j-1]); ~^~ /in/foo.cc:20:49: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d\n",max(f[l][lg],f[r-(1<<lg)+1][lg])); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^