Comments

: but i will showyou where the compiler says theres an error.: : cout<<"___________________________________________________|H|"<<endl;: cout<<"PRESS ENTER TO START THE RACE!"<<endl;: system("pause");: system("cls");: makeAnswer();: } //<-------- it says theres an error here

The error is somewhere above this point in the file. Possibly an extra open brace { or a missing one, and it has confused the compiler. The compiler is pointing to the point at which it realized there was an error, which is not necessarily the same thing as the actual source of the error.

: : i would put the code here, but it is too long... : : To bad... because the error is not in the code you've shown.: : : but i will showyou where the compiler says theres an error.: : : : cout<<"___________________________________________________|H|"<<endl;: : cout<<"PRESS ENTER TO START THE RACE!"<<endl;: : system("pause");: : system("cls");: : makeAnswer();: : } //<-------- it says theres an error here: : The error is somewhere above this point in the file. Possibly an extra open brace { or a missing one, and it has confused the compiler. The compiler is pointing to the point at which it realized there was an error, which is not necessarily the same thing as the actual source of the error.: : Cheers,: Eric: : : :thanks Eric!: :--will