Need your help! YVMUN

I cant understand why i am getting wrong answer in YVNUM. I matched all testcases and corner cases that i can think of …with the testers solution and my solution …all are hiving same answer…therefore i request u to guide me where i am getting wrong
.given below is the ideone link of my code please do check
https://ideone.com/e.js/GrO14s"

You are trying to read a number with up to 100,000 digits into long long int.

Please tell me what should i do then?

I tried it with string but now it shows SIGFPE

https://ideone.com/e.js/5nvGQI

This is the link to my string code…on ideone codechef is showing SIGFPE

//