Comp 1672, sections 1 and 2 Homework 7 Due Tuesday, Mar 4, 2003 1. The following function is supposed to return a pointer to the first even number in vec, or NULL if there is no such number. Identify and repair the error. int* first_even(vector vec) { vector::iterator itr(vec.begin()); int even; while ((itr!=vec.end()) && (*itr%2!=0)) { cout<<*itr<<" "; itr++; } if (itr==vec.end()) return NULL; else { even=*itr; return &even; } } 2. Find and fix the flaw(s) in the following function, which returns a vector of size equal to the minimum size of vec1 and vec2. Each element is the maximum of the corresponding elements of vec1 and vec2. vector max_vec(const vector & vec1,const vector & vec2) { int min_length, i; if(vec1.size() answer_vec; for(i=0;ivec2[i]) answer_vec[i]=vec1[i]; else answer_vec[i]=vec2[i]; } return answer_vec; } 3. Find and fix the flaw(s) in the following code, which uses the Employee class written during class (available on the course website, Feb 25) int main() { Employee *ep1, *ep2; // create a new employee, initialize its data, display it ep1 = new Employee("Maribeth", "Higgens", 10.5); ep1->display(); // create another new employee, initialize and display ep1 = new Employee("Marcus", "Hunter", 9.5); ep1->display(); // make a copy the existing employee and change the last name ep2 = ep1; ep2->lastname("Hinter"); // get rid of the original employee delete ep1; // display the second employee ep2->display(); return 0; } 4. Implement the two unimplemented functions from the Employee class.