the code is saved here:
Please check the code for delete from middle
u were not changing the values of jump or pos hence an infinite loop
please mark your doubt as resolved if it is solved
your code just adds a new node, not delete
refer to the code above
https://ide.codingblocks.com/s/199730 added comments for mistakes, for complete correct code refer to the previous reply