What should I do to solve the run error in the IDE. It is showing Run error for all cases
Run error (Maximum Subarray sum)
hi @yobasu2015
this is happening because of
Constraints
1 <= N <= 100000
1 <= t <= 20
-100000000 <= A[i] <= 100000000
as you can see array size is 10^5 and you have made array of size 10^3 only
and elements of array are also crossing range of int
so instead of int you have to use long long
i hope you understand