I am writing on the pros in Xcode. To remove spaces in a line I use:
lastZero.erase(remove( lastZero.begin(), lastZero.end(), ::isspace), lastZero.end()); Compiling code, launching and executing an application is excellent. I upload the code to the task site (which I am performing), mark "C ++ 11 4.8.2 - GNU C ++ Compiler with options: -lm -lcrypt -O2 -std = c ++ 11 -pipe", the compiler gives an error:
code.cpp: In function 'int main(int, const char**)': code.cpp:235:71: error: cannot convert 'std::basic_string::iterator {aka __gnu_cxx::__normal_iterator >}' to 'const char*' for argument '1' to 'int remove(const char*)' lastZero.erase( remove( lastZero.begin(), lastZero.end(), ' ' ), lastZero.end() );