No of count is not correct for higher no

no of count is not showing correct for 7 (cnt - 28) , 8 (cnt - 43)

my code >> https://ide.codingblocks.com/s/653835

sir code >> https://ide.codingblocks.com/s/657931
the the video sir code gives different cnt for 7 (cnt - 40) & 8( cnt - 92 )

same code but please how it gives different cnt

@mahroosanwar0901_2642b14836027bbf,
just make board 12 * 12, 10*10 is small for the problem

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.