struct node
{
    int a,b;
};
bool operator <(const node &x,const node &y)
{
    return x.a<y.a;
}
priority_queue<node> q;

*注意 const 以及 &