My code is not giving correct output

my code URL is :-https://ide.codingblocks.com/s/643103
plz see this code it is not giving correct output.
pleasse correct it.

Hey your code works fine. It has to do with input issues. I submitted it here https://leetcode.com/problems/merge-two-sorted-lists/ It works fine https://ide.codingblocks.com/s/643145

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.