a) void cleanse(vector & v) Implement a function that replaces in a vector each occurrence of the number 0 with the number 1 and the number 13 with the number 7 and leaves all other values unchanged. For example, the function would convert (13, 1, 0, 26, 7) to (7, 1, 1, 26, 7). A declaration of the function is shown above b) int minValue(const vector & v) Provide an implementation of the minValue function whose declaration is shown above. The function takes a single argument, which is a vector of int. The function returns the smallest int that is in the vector. c) int search(const vector & v, int k) Implement a function that searches for a given value in a vector of integers. If the value is found, the function returns the index of the value in the vector otherwise it returns 1. Do not assume the values are in order do not use binary search. For example, for v = ( 2, 4, 18, 6) the function returns 1 for k = 1 and 2 for k = 18. A declaration of the function is shown above. Solution Hi, I have implemented function that you have posted. I have one changes in function signature. While declaring any vector, we need to specify its type. In your question, you have written function siganture nut this signature is not valid. Ex.: void cleanse(vector & v) // Its wrong void cleanse(vector & v) #include #include #include using namespace std; void cleanse(vector& v) { for (vector ::iterator itr = v.begin(); itr != v.end(); itr++) { if (*itr == 0) *itr = 1; else if (*itr == 13) *itr = 7; } } int minValue(const vector & v) { int min = v[0]; for (int i = 1; i < v.size(); i++) { if (min > v[i]) min = v[i]; } return min; } int search(const vector & v, int k) { int retVal = 1; for (int i = 0; i < v.size(); i++) { if (v[i] == k) { retVal = i; break; } } return retVal; } int main() { vector vect = { 13, 1, 0, 26, 7 }; DisplayData(vect); cleanse(vect); DisplayData(vect); cout << \"\ Min : \" << minValue(vect); int val; cout << \"\ Enter value that we want to search \"; cin >> val; cout << \"The \" << val << \" is at location \" << search(vect, val); _getch(); return 0; }.