Fortran · Runtime error
What does Error 71: Integer divide by zero mean in Fortran?
An integer division operation attempted to divide by zero.
An integer division operation attempted to divide by zero.
Add an explicit check for a zero divisor before the division. Integer division by zero is not trapped as a floating-point exception, so compiler flags for floating-point traps will not catch it; the check has to be in the code.