Https://ide.codingblocks.com/s/147667 please check my code it isnt working

https://ide.codingblocks.com/s/147667 please check my code it isnt working

There is problem in ur link list formation of even and odd

i am unable to trace the flaw and
other than this is my approach alright

dont use any cout statement
like enter no of nodes or any thing else
just sttick to the inpiut as in question says

u have done some mistakes i have commeneted and change it
just go thriugh it
chec this


if any problem ust reply

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.