I have made a small program which remove words from a sentence. Everytime I try to run the program, it give me these error

> 
> Error 2 error C2040: '==' : 'int' differs in levels of indirection
>  from 'const char [4]' c:\program files (x86)\microsoft visual studio
>  12.0\vc\include\xutility line:3026 column:1 STL string erase
> 
> 
> 

and

> 
> Error 1 error C2446: '==' : no conversion from 'const char \*' to
>  'int' c:\program files (x86)\microsoft visual studio
>  12.0\vc\include\xutility line:3026 column:1 STL string erase
> 
> 
> 

also here is my code 

```
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main(){
    string sample("hello world");
    cout << "The sample string is: ";
    cout << sample << endl;
    //erasing world
    cout << "Erasing world" << endl;
    sample.erase(5, 10);
    cout << sample << endl;
    //finding h and erasing it
    string::iterator iCharH = std::string::find(sample.begin(), sample.end(), "h");
    cout << "finding h and erasing it" << endl;
    if (iCharH != sample.end()){
        sample.erase(iCharH);
    }
    cout << sample << endl;
    //erasing entirely
    sample.erase(sample.begin(), sample.end());
    if (sample.length() == 0){
        cout << "The string is empty" << endl;
    }
    system("pause");
    return 0;
}

```