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