Https://ide.codingblocks.com/s/259600

its giving wrong answer in all test cases

Hello @J20APPPP0006,

You are required to insert the word if it is not found in the dictionary.
cout<<“No suggestions”<<endl;
//Missing:
insert(pat);
return;

Corrected code:

Hope, this would help.
Give a like if you are satisfied.