Sum of all submatrices

What are those parameters in the main function for?
Also, in line no. 25 shouldn’t it be j < m ?

hello @Karanveer

yeah it should be j<m , if we consider matrix N X M

thanks for help…