Compiler Error C2223

left of '->identifier' must point to class/struct/union

The left operand of the member access operator (->) is not a pointer to a class, structure, or union type.

This error can occur when the left operand is an undefined variable. Undefined variables have type int.