/in/foo.cc:3:39: error: use of parameter outside function body before ']' token
int minPath(int n, int m, const char[n][m])
^
/in/foo.cc:3:42: error: use of parameter outside function body before ']' token
int minPath(int n, int m, const char[n][m])
^
/in/foo.cc: In function 'int minPath(...)':
/in/foo.cc:5:5: error: 'n' was not declared in this scope
if(n < 0 || m < 0)
^
/in/foo.cc:5:14: error: 'm' was not declared in this scope
if(n < 0 || m < 0)
^
/in/foo.cc:5:14: note: suggested alternative: 'tm'
if(n < 0 || m < 0)
^
tm
/in/foo.cc:8:6: error: 's' was not declared in this scope
if (s[n-1][m-2] != '1')
^
/in/foo.cc:8:8: error: 'n' was not declared in this scope
if (s[n-1][m-2] != '1')
^
/in/foo.cc:8:13: error: 'm' was not declared in this scope
if (s[n-1][m-2] != '1')
^
/in/foo.cc:8:13: note: suggested alternative: 'tm'
if (s[n-1][m-2] != '1')
^
tm
/in/foo.cc:10:6: error: 's' was not declared in this scope
if (s[n-2][m-1] != '1')
^
/in/foo.cc:10:8: error: 'n' was not declared in this scope
if (s[n-2][m-1] != '1')
^
/in/foo.cc:10:13: error: 'm' was not declared in this scope
if (s[n-2][m-1] != '1')
^
/in/foo.cc:10:13: note: suggested alternative: 'tm'
if (s[n-2][m-1] != '1')
^
tm