/in/foo.cc: In function 'void add(int, int)':
/in/foo.cc:31:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(val[p]<v)
^~
/in/foo.cc:33:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
siz[cnt]=1;
^~~
/in/foo.cc: In function 'void splay(int, int&)':
/in/foo.cc:60:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(x!=rt)if((tr[x][0]==p)^(tr[y][0]==x))rotate(p,rt);
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:122:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(num[root]==1)
^