rt,求问插入左/右函数的第二行为什么不是a[pos.R].L=x;a[pos.R].L = x;a[pos.R].L=x;
inline void addRight(int x, int pos) { //插入右边 a[x].L = pos; a[a[pos].R].L = x; a[x].R = a[pos].R; a[pos].R = x; } inline void addLeft(int x, int pos) { //插入左边 a[x].R = pos; a[a[pos].L].R = x; a[x].L = a[pos].L; a[pos].L = x; }