Test case 2 and 3 getting failed again and again

https://ide.codingblocks.com/s/649358 --link for the solution that i have done

Hello, @bhumitkatyal,

t = x, which means the data type of t should also be unsigned long int instead of just int.
Similarly, while passing t in the counting function data type of z should be unsigned long int

int counting(unsigned long int z)

unsigned long int rem,comprem,sum=0,count=0,t;

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.