Intersection point of two linked lists problem

When i submitted this code, all test cases successfully passed. But when i am only doing “Compile and Test”, it shows following error:-

“runguard: warning: timelimit exceeded (wall time): aborting command
runguard: warning: command terminated with signal 15”


Code: refer this

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.

My doubt is not the code. I understood the code. The thing is, upon clicking on “Compile and Test” in Coding blocks in the respective problem, why is my code showing error when actually the code is correct. So please have a look at my code, and tell if there’s something wrong in it.

ya actually there is some problem in compiler… when u try running code for this problem it shows error but on submitting it passes test cases… i will send this feedback to the support team… they will look into it… rest ur code is ok so don’t worry