Correct the errors in the following code (using c++) ASAPpls#include<iostream>using namespace std;/*declaring a function that reads the data from the user andhave a pass by valuesincluding the run id and the wat while it has a passs byrefrence which is number of tests */void readBulbs(int runId[], double wat[], int&num_tests);void readBulbs(int runId[], double wat[], int &num_tests){cout << “Enter run ID number: “;cin >> runId[num_tests];cout << “Enter wat value collected: “;cin >> wat[num_tests];num_tests++;}/*declaring a functin that calculate the minimum and maximumwatt values as pass by refrencevalueswhile having the wat as a pass by value*/void findMinMax(double wat[], int num_tests, int&maxIndex, int &minIndex);void findMinMax(double
PayPal Gateway not configured
PayPal Gateway not configured