1

Hi, I having this error and i don't know how to fix it, can anybody help please:

"declaration of `c' as multidimensional array must have bounds for all dimensions except the first", i'm getting this error because of :

```
void lcs::LCS_Length(int X[], int Y[], int c[][], char b[][], int m, int n)
{
for( int i = 1; i < m; i++)
c[i][0] = 0;
for( int j = 1; j < n; j++)
c[0][j] = 0;
for( int i = 1; i < m; i++)
for( int j = 1; j < n; j++)
{
if( X[i] == Y[j])
{
c[i][j] = c[i - 1][j - 1] + 1;
b[i][j] = 'D';
}
else if(c[i - 1][j] >= c[i][j - 1])
{
c[i][j] = c[i - 1][j];
b[i][j] = 'U';
}
else
{
c[i][j] = c[i][j - 1];
b[i][j] = 'L';
}
}
}
```

<< moderator edit: added [code][/code] tags >>