How many random numbers are there supposed to be?
Do you know that the = symbol in C++ only copies the thing from the right hand side into the left hand side?

You should post the sumValues...