foo.cc: In function ‘void splay(int, int&)’:
foo.cc:66:24: warning: suggest parentheses around comparison in operand of ‘^’ [-Wparentheses]
66 | if (c[z][0]==y ^ c[y][0]==x)rotate(x,k);
| ~~~~~~~^~~
In function ‘int split(int, int)’,
inlined from ‘void modify(int, int, int)’ at foo.cc:107:17,
inlined from ‘int main()’ at foo.cc:183:35:
foo.cc:95:34: warning: ‘k’ may be used uninitialized [-Wmaybe-uninitialized]
95 | rint x=find(rt,k),y=find(rt,k+tot+1);
| ~^~~~
foo.cc: In function ‘int main()’:
foo.cc:175:10: note: ‘k’ was declared here
175 | rint k,tot,val;char ch[10];
| ^
In function ‘int split(int, int)’,
inlined from ‘void modify(int, int, int)’ at foo.cc:107:17,
inlined from ‘int main()’ at foo.cc:183:35:
foo.cc:95:34: warning: ‘tot’ may be used uninitialized [-Wmaybe-uninitialized]
95 | rint x=find(rt,k),y=find(rt,k+tot+1);
| ~^~~~
foo.cc: In function ‘int main()’:
foo.cc:175:12: note: ‘tot’ was declared here
175 | rint k,tot,val;char ch[10];
| ^~~