Code gives runtime error,can't find any such test cases

https://ide.codingblocks.com/s/292098,passes 8/10 test cases can’t find any string which gives a runtime error

** 6/8 test cases. Made a typo mistake in the earlier doubt.

Question has been solved,but can anyone please show any mistake which can generate any error. Thanks for your time.

@Arpan_Goswami use long long instead of int since the size of string is upto 17

I have used a macro in the code:
#define int long long

which takes care of overflows,in case it happens,do go through it once again

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.