I don't have examples because the site evaluates the code itself without inputs. But I heard that the site inputs a tons of possible samples in it, so maybe some sort of extreme sample causes problem...
The way I see is: something must be buggy, I can't see it working, maybe because I failed to understand the expected input (I just skimmed through the code). I detected LOOOOOTS of potentials for segmentation fault, it's kinda hard to choose where to start to tackle without knowing a case that makes it fail. What input cases have you tested it with? Did it work with your own inputs? Have you tried extreme inputs yourself?