Void function: a function-definition is not allowed here before '{' token

We could probably be more helpful if you post the whole thing.