I was solving problem [Buying gifts](https://codeforces.com/contest/1801/problem/B). I am getting wrong answer if I use ordered_multiset(pbds) [submission link](https://codeforces.com/contest/1801/submission/215059248). If I use std::multiset instead of ordered_multiset than solution gets accepted [submission link](https://codeforces.com/contest/1801/submission/215059391). Can somebody explain why and what am I doing wrong???↵
↵
Note : Sorry for my bad English.
↵
Note : Sorry for my bad English.