Odd after even - Code link is shared

Why I am not getting the correct output? https://ide.codingblocks.com/s/154393

https://ide.codingblocks.com/s/154400 -this is also not working for me I took another approach of taking 2 linked list, one for odd and 2nd for even numbers and than merging them. Please resolve

https://ide.codingblocks.com/s/154393, In this code, I am not able to understand your logic you have followed,
and in the second code you have sent, it is showing runtime error.

In first code I am trying to append the even number containing nodes to the tail of linked list.