Why is the output not shown on screen?

Question ) Submatrix Sum Query
Problem ) Code complies but does not show any output on screen

Answer )https://ide.codingblocks.com/s/244163

@N4i9kita
it is because you are not taking the input in variable ‘t’ correctly.(it is inside the loop, move it outside).
Also you will get segmentation fault because of 2nd function, in which you are trying to access negative indexes, so go through it once also.

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.