Also, can you explain me a bit about the comparator class which is passed in the priority_queue. I did not understand it completely.
Can you tell my mistake?
hello @vageesha
erase function takes iterator as its argument but u r passing object.
do u know about functors?
I know its basic definition. But still I am getting confused.
Sir, instead of erase function, I have used clear function outside the loop, still it shows error.
…
it is covered in oops playlist.pls read it from that playlist.
shared ur updated code in ur other thread pls check