Linked list eliminate duplicates

am getting run error
https://ide.codingblocks.com/s/43551

https://hack.codingblocks.com/contests/c/511/301

please help

Commented your mistakes. Now its working fine https://ide.codingblocks.com/s/43579

https://ide.codingblocks.com/s/43659

in this i have commented my problem in ine 62
please see why without if statement in line 62 am getting run error with a test case like
5
10 20 30 30 30

https://ide.codingblocks.com/s/43810

I have made some changes to the code.