mardi 9 août 2016

stl priority queue is giving confusing result

i am attaching the ideone link for my code:

with less functor makes sense, the output is in correct order.But with greater functor, the output should be opposite of the less order, which is not happening, any pointer as to what i am doing wrong?

Aucun commentaire:

Enregistrer un commentaire