Cant find the error

my code is not showing the required output

first you have to make prefix sum submatrix
after that apply this logic