Circular linked list --> Delete function

I am not able to delete a particular node with a particular value.

Please look into the above ide, and explain me what’s wrong in the above code.

Please do the necessary changes, if required

Thank You

at line no 129
image
correct condition should be
temp->data == data

Modified Code