I am trying to store pairs in priority queue and I am using a compare function that compares second value of each pair.
#include #include
priority_queue,vector>,CompareDist> pq;
you need to provide second argument for the inbuilt template of priority_queue.