Coding Blocks IDE

string remove duplicates
what is the problem in this code