getting wa although using the same approach as online solution mentioned in editorial

https://www.codechef.com/JUNE18B/problems/SHKSTR/ https://ideone.com/eFFVqJ Here I am using unordered_map in trie to reduce unnecessary space but I have tried it directly also still getting wa. I am adding string no. to vector of strings at that position only if string having greater index than the last element in vector is lexicographically smaller than it