Program terminates abruptly on input for Distinct Dictionary Problem

I am trying to solve the problem distinct dictionary using Tries. I am able to compile my code, but it is not giving any output. I tried usinmg GDB where my code terminated after I gave all the inputs. I am not sure exactly whats wrong with my code. Please help!

Here is my code : https://ide.codingblocks.com/s/413581