Question: Find the errors of this 2D Array Program and then output the program. #include using namespace std; const int MAXGRIDSIZE = 100; // the maximum
Find the errors of this 2D Array Program and then output the program.


#include using namespace std; const int MAXGRIDSIZE = 100; // the maximum table size is 100 /// FUNCTION CALL bool readGrid(string, int O [MAXGRIDSIZE], int, int); ///makeGrid(grid, rows, cols, cntGrid); void makeGrid(int O [MAXGRIDSIZE], int ,int, int O [MAXGRIDSIZE]); int main( void ) string infileNameO = {"g.txt", "g1.txt", "abc.txt", "g2.txt", "g3.txt", "}; string outfileName = {"out0.txt", "out1.txt", "abcOut.txt", "out2.txt", "out3.txt", ""}; int grid[MAXGRIDSIZE] [MAXGRIDSIZE] = {0}; int cntGrid[MAXGRIDSIZE] [MAXGRIDSIZE] = {0}; // given grid // grid of counters // number of rows // number of columns int rows; int cols: int choice = 1; // to stop the program to allow the user to see the results one table at a time bool fileFound; // test loop: takes the names of the input files from an array of names for (int i = 0; choice = 1 && infileName [i] != ""; i++) { fileFound = readGrid(infileName [i], grid, rows, cols); if (fileFound) { makeGrid(grid, rows, cols, cntGrid); writecreen(infileName [i], rows, cols, cntGrid, outfileName [i]); writeGrid(outfileName[i], cntGrid, rows, cols); else { cout > choice; } return 0; FUNCTION INFO FUNCTION INFO bool readGrid(string inFile, int grid I MAXGRIDSIZE], int rows, int cols) return false; void makeGrid(int gridOMAXGRIDSIZE], int rows, int cols, int cntGrid I MAXGRIDSIZE) /** Save the output below