(1) Type defined for format_error(). (2) strtok() now correctly being called with NULL as main str argument in second call to parse K from input. (3) strtol() return value now correctly being checked in case of parse error.