Question d’entretien chez CMP

Why does the following code throw a runtime error? How could you fix the code so it will run correctly?