Prateek sir and coding

i am getting run time error on submitting the code while its working fine on the ide ; https://ide.codingblocks.com/s/198743

When query =1, you are simply displaying the top element of the stack without checking if the stack is empty or not. If the stack is empty, you have to display “No Code”. This is mentioned in the question.