Priority queue STL

here size of the array is 5 and input given is 1 10 5 4 3 after program execution output is 10 5 4 1 and loop starts from position one then why 3 is not there in the output

here size of the array is 5 and input given is 1 10 5 4 3 after program execution output is 10 5 4 1 and loop starts from position one then why 3 is not there in the output

hello @aditikandhway
pls share code that u r referring to.

https://ide.codingblocks.com/s/297476 here is my code

run ur loop from i=0