我使用的是:
struct edge{ int u,v; }; vector<edge> g[maxn];
存图(邻接表),求助如何用 auto 遍历与一个点相连的所有边?
for(int i=0;i<g[x].size();i++)
这种我会。