I\'m trying to read in data and solve simple problem, data :
3 - number of lines to read in 1 1 2 2 2 3 4
after each line is
Put
sum=0; // at the top
sum=0;
ps
while(cin.peek()!='\n'){ }