I'm trying to solve the problem in C++ Tab is the input array, Tab2 [j] is the sum from 0 to i and 0 to j in Tab
done
I can't assure at all wether this line : tmp=Tab2[m][n]-Tab2[m][j-1]-Tab2[i-1][n]+Tab2[i-1][j-1]; is correct or not, maybe it has to be checked first :-?