I see. Then can you at least put the `printf` below into the `if` branch, so that it doesn't claim 0 average error when in fact no errors were calculated? And perhaps print a different message in the `else` branch.