Getting runtime error her

here is my code

hello @kks2029

a) your code is not even compiling . in some function u have have mentioned non void return type but u r not returning anything .
b) value of k can be upto so increase number of rows in matrix m.

Yup my value of k was the problem thanks man! I was stuck for days on this code!! It was not getting accepted! Thanks a ton

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.