i have following code
#include <iostream>
#include <string>
using namespace std;
string replace(string s){
for (int i=0;i<s.length();i++){
if (s[i]> 'b' && s[i]<'f'){
s.erase(s[i]);
}
}
return s;
}
int main(){
string s;
cin>>s;
cout<<replace(s)<<endl;
return 0;
}
if i enter georgia it show me exception "abort was called" why?