Max subarray sum

sir when i am providing custom input then i am getting correct answer but on sumitting all test cases are coming wrong:

@Megha2468 you need to use long long int instead of int. Also you need to reinitialise cs and ms to 0 for each new t.