So after compiling my program with no errors, I try to run a query and the terminal tells me:
1 2 3
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::replace
Aborted (core dumped)
Now, I understand the out_of_range error is getting thrown after having called the replace() method, but how do I prevent terminate from being called? I've tried this and it doesn't work: