Cause of runtime error on OJ

Except for the five cliches
1. Array size is too small, resulting in access to the memory should not be accessed
2. A division by zero error occurred
3. A large array is defined inside a function, causing the program stack to run out
4, The pointer is used incorrectly, resulting in access to the memory should not be accessed
5. It is also possible that the program threw an unreceived exception
The author also found that sometimes open array on OJ is too large (global variables, can run normally in the local) will cause runtime error, we need to pay attention to.


Read More: