Maximum subarray sum displaying wrong answer but running perfectly on another platform
@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