Code shows run error

Could you please go through my code and see where i am going wrong.
Code: https://onlinegdb.com/8Dil0j6FF

Hi Adarsh,
all u have to do is first find length of both the linked list… after that move the head of that linked list ahead which is of greater length by comparing difference of both lists… then compute ans…
refer my code https://ide.codingblocks.com/s/627208

There’s something wrong, i saw the difference between our code and made necessary changes. Then i checked your code as well, it give run error

hi… there is some issue in compiler… just directly try submitting my code… it will pass all test cases…

Okay now the code worked

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.