Please help to find the error

Please help me find error https://ide.codingblocks.com/s/636254

In your condition function you are taking index as parameter
but from the heapify function you are passing values
that’s why it gives wrong ans

Correct code

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.