bool operator <(edge a)const { return w<a.w; }
和
bool operator <(edge a)const { return a.w<w; }
有什么区别,但一个过不了,一个能过。 这道题