In compilator I get right answer. Why it is error in second point?