Question: Task 2 Working with Arrays (7 points] Complete the three functions with the specification below: int algo1(vector & myVec) returns the first element of the
![Task 2 Working with Arrays (7 points] Complete the three functions](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2f9ee5b7e1_72566f2f9edc711d.jpg)


Task 2 Working with Arrays (7 points] Complete the three functions with the specification below: int algo1(vector & myVec) returns the first element of the array int algo2(vector & myVec) returns the sum of all the elements of the array void algo3(vector & myVec, vector> & my Pair) create all possible pairs of the element in the array, for example an array {1,2,3} would generate the following pairs {1,2} , {1,3}, {2,1} , {2,3} , {3,1}, {3,2}. The function then stores the generated pairs in the vector my Pair You need to output the time it takes to run the three functions for the three vectors given in the code template and display the output similar to the ones shown below: return ; int algol (vector & myVec) { //complete your code here! return 0; int algo2 (vector int> & myVec) { //complete your code here! return 0; void algo3(vector int> & myVec, vector> & my Pair) { Il pair aPair; 1/complete your code here! cout vec1(10,1); vector int> vec2 (500,1); vector int> vec3(10000,1); tl = high_resolution_clock::now(); algol (vec1); t2 = high_resolution_clock:: now(); algol timel = t2-t1; tl = high_resolution_clock::now(); algo2 (vecl); t2 = high_resolution_clock::now(); algol_time2 = t2-t1; t1 = high_resolution_clock::now(); algo3(vecl, myPair); t2 = high_resolution_clock::now(); algol_time3 = t2-t1