Compiler Error C2108

subscript is not of integral type

A nonintegral expression was used in an array subscript.