cant get whats wrong in my code

https://www.codechef.com/viewsolution/18936179

One of the mistakes I found is that your code doesn’t work if a or b is 0, you haven’t mentioned any condition for either of them.

thanks got it