Code is not running successfully please check

ide is showing that the code is dumped

Your mistake
at line no 26 in your code
while(fast->next!=NULL and fast!=NULL)

first you have make sure that fast!=NULL then only check fast->next
because is fast is null then fast->next will give run time error

so correct statement is
while(fast!=NULL and fast->next!=NULL)

Modified code

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.