I'm new in trie. I have solved uvaoj problem no 11362 (phonebook) but it does not work properly. For the first test case it shows correct ans but for next 2nd test case compiler says "Has stopped working" problem link : https://uva.onlinejudge.org/external/113/p11362.pdf my code : http://pastebin.com/VMdzx7CB