Prateek sir and coding problem

sir why its showing run error the output is write

@YASHMATHURIA123,
Check before poping and toping, whether the stack is empty or not.

sir it now show wrong answer

sir please tell me so that i cant make these problem in future of my codes

@YASHMATHURIA123,
New line after printing “No Code”.