Maximum sub array sum problem run time

run error is showing. I am providing my code here plz tell me my mistake . https://ide.codingblocks.com/s/80263

for sorting the array don’t write your own bubble sort code complexity is O(N^2)
instead use inbuilt sort function which has complexity of O(nlogn)
syntax
sort(arr,arr+n)
arr->array name
n->size of array


i have added comments correct your code according to that

https://ide.codingblocks.com/s/90305 this is the code sorry . getting run time error

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.