help me correct it to get the right result
I'm not laughing, but I can't help you, either. Your program has jumped past what I know about stacks.