Reverse a stack with recursion

multiple test cases failing. Can plzz someone tell me what’s wrong with my code?
code link : https://ide.codingblocks.com/s/94663

You are not taking input to the stack correctly . Take input to the stack form scanner.

Can u plzz correct my code and tell me where i have done mistake.

I have corrected the code . Check it.