RT,请问我这样写为什么会报错?谢谢!
const int maxn=1e4+5; struct Edge{ int to,next; Edge(int x,int y){to=x;next=y;} }e[maxn]; int head[maxn],tot; void connect(int u,int v){ e[++tot]=Edge(v,head[u]);//编译标红了这里 head[u]=tot; }