RT,为什么用优先队列会报编译错误。
struct things {
int v, m;
inline bool operator<(const things& t2) { return this->v < t2.v; }
inline bool operator==(const things& t2) { return this->v == t2.v; }
} a[MN];
inline bool cmp(things t1, things t2) {
return t1.m == t2.m ? t1.v > t2.v : t1.m < t2.m;
}
priority_queue<things> q;