Please help with this code

Inspired by this technique, I have written a code to sort a stack
But it shows an error that I am unable to resolve
Please help

Hi… I have corrected ur code… https://ide.codingblocks.com/s/603441
its working fine now…

You have changed the code for reversing the stack, i was making a code for sorting one, please fix the error in mine (sorting a stack)

oh… okay… i misread it… https://ide.codingblocks.com/s/603478
I have corrected ur 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.