P>void tree_input(Node* root, string word, unsigned int freq) P>{ […] curr->>words.erase(curr->words.end());