I cannot able to take input properly in this problem please help

in the simple input problem i build the code but i seem to have a problem in taking input.It is showing error i don’t know what to do please help

What’s the error please elaborate !!

i can’t seem to be able to take the whole thing as an input without the size of the list given

use a while loop and take input line by line until sum >= 0.

Hope this cleared your doubt. :blush: