an error "expected unqualified-id before string constant" when compiling

const int N=100;
float voltageValue[N];
float voltage[N];

That's 802 bytes of memory gone, right there. Do you really need to store 200 floats? The "voltage" read is an int. Why not, if you really need floats, store the ints read, and produce the floats as needed?

The voltageValue array should definitely be int, since that is what analogRead() returns.

Frankly, I can't see that you need to save more than two readings, since it is only the current and previous readings that matter.