Everything is correct dont know whats the problem please help me out

https://ide.codingblocks.com/s/54914
name of the problem is maximum subarray sum

Test Case:
1 //t
1 //n
-10 // a[0]
your output:
0
required output
-10
Hit like if u get it.:slight_smile:

Hi Kunj, check the constraints of the problem.
Constraints:
1 <= N <= 100000 1 <= t <= 20 0 <= A[i] <= 100000000
You have used int data type, which will not work.

thanks for your help got the problem in my code.