Issue with my code

the program says I will be getting a list as an input, and what I am trying to do is iterate over the list and add the number until the sum is not less than 0.
My code is not compling.

The problem here is I am not sure how the input is passed to my program.