Error analysis in teaching mathematical informatics