'identifier' : illegal use of type 'void'
The given variable was declared with the keyword void, which can be used only in function declarations.