Regarding maximum sub array

https://ide.codingblocks.com/s/68095
This is my ide .
In this code it shows run error ,I couldn’t identify it.please help me.

@raushan.raman23011999 I have corrected your code in ms stands for maxSum and cs stand for current sum you can refer this .