There is a error in code

my program is not running it is showing Process exited after 1.905 seconds with return value 3221225725
here is the link:

@vketan182,
Initialise sr and also, your program is going in infinite loop. Dry run on small matrices to find bug.

still there is some error:

@vketan182,
Did you dry run on small matrices like 1X1 or 2X2?

i did for 3x3 but i took infinite inputs

@vketan182,
Dry run on this,

Input
3 3
1 2 3
4 5 6
7 8 9

Still it is asking for more inputs and not showing an output

@vketan182,
Try now, Code.

still the same error it is taking infinite inputs.

@vketan182,
It’s not taking infinite input, after you put in the required input, the program runs into a infinite loop, debug in pen and paper to see why your while loop doesn’t reaches it’s terminating condition.

i’m unable to find it

@vketan182,
Check now, Code.