Why do I get a Run Time Error?

what if run time error occurs after submission of the solution…what does it mean? my solution is right or wrong??

2 Likes

According to me it means that your program may not be running as required.

It can occur due to:

main not returning a 0

or, memory being exceeded.

or it can be due to a infinite loop etc.

If the message shown is “Wrong Answer” it means that your solution is wrong.

2 Likes

Please refer the FAQ for Run Time Error here

2 Likes

new line(\n) is also treated as WA??

1 Like