Gradescope Error Codes

The numerical error codes reported on Gradescope in the form
test program error: exited with error code 142"
are formed by 128+N where N is a standard Unix signal number, which you can list by running the terminal command
kill -l
In this example 142−128=14 , which is SIGSEGV, corresponding to the segmentation fault. Here is a short annotated list of the most common failures.
134
Assertion failure
136
Floating point error
139
Segmentation fault
142
Timeout expired