/in/foo.cc: In function 'int main()':
/in/foo.cc:20:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
f[i][j]=max(f[i][j-1],f[i+(1<<j-1)][j-1]),g[i][j]=min(g[i][j-1],g[i+(1<<j-1)][j-1]);
~^~
/in/foo.cc:20:77: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
f[i][j]=max(f[i][j-1],f[i+(1<<j-1)][j-1]),g[i][j]=min(g[i][j-1],g[i+(1<<j-1)][j-1]);
~^~
/in/foo.cc:19:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i+(1<<j)-1<=n;++i)
^~~
/in/foo.cc:21:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
while(m--)
^~~~~