I am getting WA in funky chess board problem

I am unable to find bug in my code. Please tell me bugs in my code

Link: https://ide.codingblocks.com/s/251640

u are missing a backtracking line where u calculate the max no of places the king can visit in one journey


refer to this line no 8

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.