在 query 函数中,如果你的返回类型是结构体,那么其最左边的颜色和最右边的颜色不能直接赋值成 ppp。。。
tmp.lc = t[p].lc; tmp.rc = t[p].rc; // wrong
tmp.lc = t1.lc, tmp.rc = t2.rc; // accepted