Getting wa even after using same approach as editorial

shkstr
trie

#1

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