struct node { int cc,id;//how long,cost friend bool operator<(const node &x,const node &y) { return x.cc>y.cc; } };
与
struct node { int cc,id;//how long,cost friend bool operator<(node x,node y) { return x.cc>y.cc; } };
都能过
在考场上有什么区别吗