You did not specify a type for the parameter of your function.
Likely types are int*
or char*
, but you haven’t given enough information to perfectly deduce the type.
bool checkWin(/*You MUST specify a type here!*/ spaceleft)
Example: bool checkWin(int* spaceleft)