Sometimes writing a program causes errors in the output