Maximum subarray sum problem

tell me where i am wron

Hi there are small mistakes in your code that i have corrected
corrected code : https://ide.codingblocks.com/s/192948

also you can check the corrections i made by refering below link

https://www.diffchecker.com/cLWXLgat

In case of any doubt feel free to ask :slight_smile:
If you got the answer mark your doubt as resolved