left of '.identifier' must have class/struct/union type
The left operand of the member-of operator (.) is not a class, structure, or union type.
This error can occur when the left operand is an undefined variable. Undefined variables have type int.