请使用 priority_queue<int,vector<int>,greater<int>> q;,不要弄混了
priority_queue<int,vector<int>,greater<int>> q;
我就是被一篇题解误导了