bitset<N> a; for(int v=a._Find_first();v!=a.size();v=a._Find_next(v)){ pre[v]=u,vis[v]=1,q.push(v); } 注意返回的 v v v 是位数