InterviewBit Problems   Magician and Chocolates : Solved

About the Magician and Chocolates : Solved category (1)
Can anyone help me understand what's wrong with my code? (2)
Java soln using PriorityQueue (1)
Can someone help me find the problem in my code (1)
C++ solution using priority queue and long long int use (1)
Easy C++ solution using max heap (1)
C++ solution using MaxHeap (Time Complexity: O(Alogn)) (2)
Eazyyyyy Peezyyy solution using max heap (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)