why we are using multimap/multiset because already set and map are available.
What is use of multimap, multiset
Duplicate values are not permitted in normal set and map.
it means that duplicate values are permitted in multiset/multimap?
then again one question arise -already vector ,list ,map are available
Yes duplicate values are permitted in them.
But it allows you to keep the all the values in sorted order. As you solve questions you will realize their importance.
ok,i will solve the question