Is it possible to print the stack trace and show it to the user in case a runtime error or seg fault occurs?That would be very helpful if we cant detect those errors on our systems but gives run time errors after submission.
No, there's no way you could allow that - you could get too much information out of it. You're expected to come up with tricky test cases to find errors yourself.