Rain water harvesting problem

why in most of the problem its not giving any output .

by using while loop https://ide.codingblocks.com/s/155374

Hi @sk3657860, the code that u have shared here is to find out the maximum subarray sum. Are you submitting it on Rainwater Harvesting question ??