English Similar Implementation but cannot identify error

Question: CodeChef: Practical coding for everyone
Code(Trie using array) : CodeChef: Practical coding for everyone
My implementation(Without array): 5oF4vY - Online C++0x Compiler & Debugging Tool - Ideone.com

The only difference in both the solution is implementing trie’s without array and using an array.

Can anybody help me where am I going wrong in implementing?
Thank you!