DevC++ is not a compiler, it is an IDE. The compiler that comes with DevC++ is an old version of g++ that does not support string::pop_back. So the solution is to get a more modern compiler (g++...