According to the solution, there is no error in the program. And I ran the program there is no error. But how the rank is declared as int and initialized by 10.3 which is float. So, there should be a semantic error.
64.3k questions
77.9k answers
244k comments
80.0k users