HELP IN MODEFREQ

but I have initially done it with vector it showing runtime error can you explain reason behind that??

all you gotta do is calculate frequency of frequencies and then return the min element with max value

yes, follow the instruction given in question 1->count the freq of Ai
2->count the freq of (freq of Ai)
3->print the required o/p
I am storing the freq in map

i might be able to help you if i see your code