wrong answer

does wrong answer appears only when output does not match with correct one or this apply for input also.