/in/foo.cc: In function 'void pushdown(int)':
/in/foo.cc:35:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
rev[x]=laz[x]=0;
~~~~~~^~
/in/foo.cc: In function 'void print(int, int)':
/in/foo.cc:43:55: warning: format '%d' expects argument of type 'int', but argument 3 has type 'll {aka long long int}' [-Wformat=]
printf("~%d %d %d %d %d\n",x,v[x],sum[x],siz[x],fa[x]);
~~~~ ^
/in/foo.cc:43:55: warning: format '%d' expects argument of type 'int', but argument 4 has type 'll {aka long long int}' [-Wformat=]
/in/foo.cc:43:55: warning: format '%d' expects argument of type 'int', but argument 5 has type 'll {aka long long int}' [-Wformat=]
/in/foo.cc:43:55: warning: format '%d' expects argument of type 'int', but argument 6 has type 'll {aka long long int}' [-Wformat=]
/in/foo.cc: In function 'void rotate(int)':
/in/foo.cc:48:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(ff) ch[ff][isrt(f)]=x;fa[x]=ff;
^~
/in/foo.cc:48:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(ff) ch[ff][isrt(f)]=x;fa[x]=ff;
^~
/in/foo.cc: In function 'void splay(int, int)':
/in/foo.cc:57:3: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else rotate(x);rotate(x);
^~~~
/in/foo.cc:57:18: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
else rotate(x);rotate(x);
^~~~~~
/in/foo.cc: In function 'int build(int, int)':
/in/foo.cc:63:9: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int m=l+r>>1;
~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:115:11: warning: unused variable 'j' [-Wunused-variable]
int i,j,k;
^
/in/foo.cc:115:13: warning: unused variable 'k' [-Wunused-variable]
int i,j,k;
^