Please tell the error

#include
using namespace std;
int main() {
int csum,input;
while(cin>>input){

    csum=csum+input;
	if(csum>=0){
	cout<<input<<endl;}
}



return 0;

}

QUESTION:
Given a list of numbers, stop processing input after the cumulative sum of all the input becomes negative.

Input Format
A list of integers to be processed

Constraints
All numbers input are integers between -1000 and 1000.

Output Format
Print all the numbers before the cumulative sum become negative.

Sample Input
1
2
88
-100
49
Sample Output
1
2
88

hi @alokkr2111_c44918384e4c5a59 updated https://ide.codingblocks.com/s/664663

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

How is just initialization to zero changing the output?

@alokkr2111_c44918384e4c5a59 Coz initially sum can be anything if it is 100000 then the test case wii never be negative