I have a problem that is, when I sum the values of an array (that are all positive, I verified by printing the values of the array), I end up with a negative value. My code for
Declare variable summcp like
summcp
long long int summcp = 0;