https://ide.codingblocks.com/s/47820 sir i write the code for simple problem but only one test case passed.
kindly tell me problem in the code.
Simple input test case
Hey Neeraj, read the problem carefully according to the problem you are supposed to stop processing input after cumulative sum of all the input becomes negative, but in your current code you are just processing input until you get a negative number in input.
I got it sir! thankyou