Cycle detection linked list

my code is correct but its not getting submitted
here is my code-https://ide.codingblocks.com/s/327010

When the fast and slow collide, I suggest break the while loop and then remove the cycle present in the linked list, You can check the respective code here.

bro can u please change it in my code and mark it because some other TA told me that this the right thing to do