I am sorry to bother you again, but following error occurs, Do i need to update libraries? or other way to compile?
i included <algorithm>
and using gcc 4.5.2
assignment-1.cpp:57:93: warning: lambda expressions only available with -std=c++0x or -std=gnu++0x
assignment-1.cpp:57:94: error: no matching function for call to ‘remove_if(std::basic_string<char>::iterator, std::basic_string<char>::iterator, main()::<lambda(char)>)’