johnwasser:
It's not saying that the index is a 'float'. It's saying that the index is an array of floats of size 'i'. That array is not an integer.
J-M-L:
it's telling you it's a pointer to an array of float which it does not like (but not a float)
It's finally sunk in. Thanks again.