WA in all test cases

link: https://ide.codingblocks.com/s/268137
I have used minheap to implement it. The given TC is getting passed but I am getting WA for the Others.

Hey Ritwik,
problem is with overflow! use l[], c[] and pq of type ll as while multiplying the answer already overflows.

But the problem says l[] and c[] are in the range of 10^5 which can be accomodated in int…

Yes but you also multiply!
cost += (l[i] * pq.top());
so range reaches 10^10 which results in overflow(even when your cost is long long type!)