Fix: missing variable initialization for l_error. Fix: print format is not valid. Fix: ier is declared twice as a local variable.