写一道题.
n++; insert(rt[n],rt[n-1],p,x);
像以上那样写可以过. 像以下那样写则出错.
insert(rt[++n],rt[n-1],p,x);
原因应该是执行顺序不同了, 那么这个++n到底在什么时候加上去了.