You said integer numbers, so use int instead of double.
vals[count] << input;

??
Does that actually work parksie?

Do
input >> vals[count];
that is better.

And you must increment count after each read:
input >> vals[count++];

No more help unless you post exactly what compile errors you get.