What's wrong with the following code

@Narasimha,
If the pile is empty, you need print “No Code”.

Input:
4
1
2 6926748
1
1

Expected Output:
No Code
6926748
No Code

Your output:
Runtime error

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.