I am getting the error

error C4716: 'ReStart' : must return a value

can anyone help?

int ReStart(int id);


although your question is pretty vague, due to that you paste not nearly enough code,
I think the problem might be that your function definition of "ReStart" has a semi-colon after it, which it shouldnt. I'd say if your wrote "ReStart" to say this

int restart(int id)
   return id;

it would work. But what are you trying to do? I dont see how this would benefit you in
any way.

In short: When you define a function with a return type, (the first "int" in "int ReStart(int id)" ), you need a "return <int_number_here>;" command at the end of your function.

Hope that helped, -Harry