'function' : local functions are not supported
The specified function was defined inside the body of another function. This error can be caused by omitting the closing curly brace (}) in a function definition.
The following is an example of this error:
void func1()
{
// Missing a closing curly brace here
void func2() {} // Error detected on this line
void func3()
{
void func4() {} // Error detected on this line
} // Local functions not allowed