The error is exactly what it says it is; you’re trying to take sumall[0] when sumall is an int and that doesn’t make any sense. What do you believe sumall should be?
The error is exactly what it says it is; you’re trying to take sumall[0] when sumall is an int and that doesn’t make any sense. What do you believe sumall should be?