Cycle detection problem

what is wrong in my code?

7 passed. 4 run-time error.

hello @priyamthakuria27
pls save ur code here ->https://ide.codingblocks.com/
and share link with me

@priyamthakuria27
image
it should be
while (fast && fast->next)

It shows the same error

image
it should be ==

ur code ->

2 test cases still shows runtime error.


it is working fine in my machine,
pls try to submit again

link where i m submiting->
https://hack.codingblocks.com/app/contests/1737/1307/problem

Thank you. Will give positive feedback :’)