tree[++tot].val=tree[tot].sum=val;
状物在c14之前是未定义行为,这之后会倒着执行导致本地能对交上去全wa,应改为
tree[++tot].val=val; tree[tot].sum=val;