看看你的珂朵莉树区间重载小于号的时候有没有判断右端点。 错误写法:
struct node{ mutable int l,r,t; friend bool operator<(node a,node b){ return a.l<b.l; } };
正确写法:
struct node{ mutable int l,r,t; friend bool operator<(node a,node b){ return a.l^b.l?a.l<b.l:a.r<b.r; } };