this function is suppose to rebalance a heap after the max value has been remove from a seperate function. while I was writing it I first tried a varible for Left and Right. The program freezes when it tries to run the remove_max function. This is just something that was confusing me and I was unable to find out why it doesn't work with the varibles.
originally I used LC for left child and rc for right child, just changed it to left and right for this posting. I'm using code blocks IDE if that matters.
I have it working as long as I don't use the variables and just use 2*i+1 and 2*i+2. It should work with the variables as define just doesn't was wondering why they wouldn't function properly.