Run error for a test case

I submitted the same code below on leetcode and it got accepted there. It is giving me run error on Coding Blocks IDE.
I tried to dry run but wasn’t able to spot the error. Can you let me know where code may break or this is again something to do with the wrong test cases.

@PThak2018
You have to number number in this question. Hwy are you printing “true” or “false” here ? Have you raised doubt for wrong question?

Sorry Abhishek.
Gave the wrong link. Please find the updated one below

@PThak2018
Your code is giving runtime error for this case “3413812842”. Dry run your code for this testcase

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.