你试一下吧 $utility$ 删了
by nomonick @ 2021-10-12 19:13:19
```cpp
bool operator<(const node &b)
{
return w>b.w;
}
```
↓
```cpp
friend bool operator<(const node& a, const node& b) { return a.w > b.w; }
```
by 墨笙_Mooos @ 2021-10-12 19:17:38
`bool operator<(const node &b)`
$\to$
`bool operator<(const node &b) const`
by yzy1 @ 2021-10-12 19:25:45
@[姬语阳](/user/358781) 重载写挂了
by Weight_of_the_Soul @ 2021-10-12 19:34:17
感激不尽
by wublabdubdub_s @ 2021-10-12 19:36:40