大概率是爆栈了,我的错误是每次询问存边的编号未清零。(就是下面的tot)
il void add(int x,int y) { nxt[++tot]=head[x]; head[x]=tot;go[tot]=y; }