Compiler Error C2107

illegal index, indirection not allowed

A subscript was applied to an expression that did not evaluate to a pointer.