In a previous version, i may have equaled the count of the numbers entered, but not now.
Now you want i=0;i<count;i++ and %d, array for the for and print statements, respectively.
Technically, the top for statement should be "this < count-1". Why? Because next is always one element higher than "this". So "this", doesn't need to go to the end of the array. In reality, it just loops one more time, doing nothing, because "next" has already reached the highest element in the array, and won't even start looping outside the array. So it's fine, but know that, if you're asked by some smarty pants teacher. ;)