prog.cpp:5:33: error: array bound is not an integer constant before ‘]’ token
bool ways(int x,int y, int mat[n][n], int res[n][n]);
^
prog.cpp:5:36: error: array bound is not an integer constant before ‘]’ token
bool ways(int x,int y, int mat[n][n], int res[n][n]);
^
prog.cpp:5:37: error: expected ‘)’ before ‘,’ token
bool ways(int x,int y, int mat[n][n], int res[n][n]);
^
prog.cpp:5:39: error: expected unqualified-id before ‘int’
bool ways(int x,int y, int mat[n][n], int res[n][n]);
^~~
prog.cpp:6:24: error: array bound is not an integer constant before ‘]’ token
void printsol(int res[n][n]);
^
prog.cpp:6:27: error: array bound is not an integer constant before ‘]’ token
void printsol(int res[n][n]);
^
prog.cpp: In function ‘int main()’:
prog.cpp:29:9: error: ‘no’ was not declared in this scope
cout<<no solution found;
^~
prog.cpp: At global scope:
prog.cpp:34:24: error: array bound is not an integer constant before ‘]’ token
void printsol(int res[n][n])
^
prog.cpp:34:27: error: array bound is not an integer constant before ‘]’ token
void printsol(int res[n][n])
^
prog.cpp: In function ‘void printsol(...)’:
prog.cpp:39:10: error: ‘res’ was not declared in this scope
cout<<res[i][j]<<" ";
^~~
prog.cpp: At global scope:
prog.cpp:44:33: error: array bound is not an integer constant before ‘]’ token
bool ways(int x,int y, int mat[n][n], int res[n][n])
^
prog.cpp:44:36: error: array bound is not an integer constant before ‘]’ token
bool ways(int x,int y, int mat[n][n], int res[n][n])
^
prog.cpp:44:37: error: expected ‘)’ before ‘,’ token
bool ways(int x,int y, int mat[n][n], int res[n][n])
^
prog.cpp:44:39: error: expected unqualified-id before ‘int’
bool ways(int x,int y, int mat[n][n], int res[n][n])
^~~