struct segs{ int l,r; int id; }sgs[M]; bool cmp(segs x,segs y){ return x.l<=y.l; }
rt,写成这样会 RE,但是写成 return x.l<y.l 就可以
return x.l<y.l