Sudoku Solver- getting TLE

code: https://ide.codingblocks.com/s/78802
I am getting TLE, how to optimize it

There is slight mistake in your code, Error in line no 15, change it to
for(int x=sx;x<sx+rn;x++),
in line no 47,
change it to for(int k=1;k<=n;k++),

Try to submit it after that

code : https://ide.codingblocks.com/s/78802
Tried the changes that you suggested but still getting TLE

There was slight error in your code, in your both functions, I have corrected your code, try to submit it now.
This is the corrected code