} else if ((str[i + j] != pattern[j]) && && (str[i + j] != pattern[j + error])) {
//Title of this code
#include <iostream>
using namespace std;
/*
hellobello
valid: lb - one missing o
valid: elo - one missing l
valid: loob - one more plus o
abcdefghij
cdeghij
*/
int search(const string& str, const string& pattern, int maxError) {
for (int i = 0; i < str.length(); ++i) {
int error = 0;
g++
-1