Programming Basics Online Exam - 9 and 10 March 2019 Задача: High Jump

https://softuni.bg/downloads/svn/programming-basics-v4/course-directories/may-2019/2019-01/Exam/06.%20High%20Jump.pdf

Дава ми 70 от 100 точки, а всичко ми изглежда наред. Явно не съм го изпипал. Ако можете ми помогнете.

int main()
{
    int jumpTarget, currentJump, counterFailed = 0, counterJumps = 0;
    cin >> jumpTarget >> currentJump;
    int heightToJump = jumpTarget - 30;

    while (currentJump <= jumpTarget)
    {
        counterJumps++;
        if (currentJump <= heightToJump)
        {
            counterFailed++;
        }
        else
        {
            heightToJump += 5;
            counterFailed = 0;
        }

        if (counterFailed == 3)
        {
            cout << "Tihomir failed at " << heightToJump << "cm after " << counterJumps << " jumps." << endl;
            return 0;
        }
        cin >> currentJump;
    }
    cout << "Tihomir succeeded, he jumped over " << jumpTarget << "cm after " << counterJumps + 1 << " jumps." << endl;
    

    return 0;
}