Maximum sum Sub matrix problem

I am getting wrong output for maximum sum sub matrix . please rectify my code. here is the code link
-> https://ide.codingblocks.com/s/359105

hello @rajcoolz_123

here u need to handle the case when i=0 or j=0 seprately because in that case i-1 or j-1 will be -1 and we cant access negative indices

Yes sir, what shall i modify to get desired result for my code. Can you please send me the correct code after modification of my code.

@rajcoolz_123
check now->

1
3 3
1 2 3
4 -5- 6
7 8 -9
If I am giving this as an input I am getting wrong output sir. Once please check sir

@rajcoolz_123

it is working fine

dont give space between - and digit

Yeah, Thank you sir.

Thank you sir, silly mistake was made