Can you explain code inside int main

can you explain code inside int main ?

Please mention the video you are referring to

$ Sum Of All Submatrices Of A Given Matrix Implementation - [C++]

The code is clearly based on the concept taught in the last video and nothing extra. Please watch that video again for clarity.
And then mention your doubts here or the part of the code you cannot understand.

i still dont understand

explain me with the code

Refer this. Dry run with the sample case to understand it better.
The solution is a bit tricky but you can best understand from the video.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.