struct node { string na; int h; }; inline bool cmp(node a,node b) { return a.h<b.h; } priority_queue<node, vector<int>, decltype(cmp) > v;