InterviewBit Problems   Magician and Chocolates : Solved

About the Magician and Chocolates : Solved category (1)
Eazyyyyy Peezyyy solution using max heap (1)
C++ solution using MaxHeap (Time Complexity: O(Alogn)) (1)
CPP solution using pq (1)
O(nlogA) solution c++ (1)
Cpp easy soltn using priority queue (1)
Simple solution - std::priority_queue (2)
C++ solution with multiset (1)
Python Sol Amiiii (1)
Java solution with priorityQueue (1)
Solution using max heap (1)
Why is this code not working? (2)
Using Map gave TLE but Priority Queue gave correct answer (4)
Can somebody explain to me the way the various constructors are defined for the priority queue? (1)