Maximum subarray sum displaying wrong answer but running perfectly on another platform

https://ide.codingblocks.com/s/62936

@Eshita_Sharma hi eshita you make silly mistake in your code you are running your code for multiple test case so put endl after each test case execution . I have corrected your code you can refer this

thanks for correcting

@Eshita_Sharma happy coding!