
v0.39: Grademe is back in your terminal.
Try the CLI betaRead a value and print it only if it fits in a signed 16-bit integer, otherwise print OVERFLOW.
June 4, 1996. Ariane 5 lifts off on its maiden flight, carrying four science satellites. Thirty-seven seconds in, the guidance system tries to stuff a 64-bit velocity into a signed 16-bit integer. It does not fit, the conversion overflows, the navigation computer chokes on the garbage that comes out, and the rocket swerves and self-destructs. Price of that one unchecked conversion: about 370 million dollars. Catch the overflow before it happens.
./main 32767Expected result
32767For your own tracking. Tests grade your code.
./main 32768Expected result
OVERFLOW./main -32768Expected result
-32768Expected files
main.cAllowed functions
printfatol