vector<string> printPath(int m[MAX][MAX], int n) {
// Your code goes here
string curr_path;
path_finder((int*)m,0,0,curr_path,n);
return ans;}
//`void path_finder(int *m,int i,int j,string &curr_path,int n)
{
if(m[i][j]==0)return;}`
//error:`prog.cpp: In function void path_finder(int*, int, int, std::__cxx11::string&, int):
prog.cpp:44:15: error: invalid types int[int] for array subscript
if(m[i][j]==0)return;`
hello above mentioned are the code-error can anyone explain me how to pass a 2-D array as a refrence