- #1

- 22

- 0

## Main Question or Discussion Point

Hi I have these functions:

that I calls through
which produces together these error messages:

what I am doing wrong? Thanks for any help.

Code:

```
void posicaoIfElse (int e [][n], int i, int j, int k, int m, int n) {
........
........
}
void posicaoFormula (int e [][n], int i, int j, int k, int m, int n) {
........
........
}
```

Code:

```
posicaoFormula (e,i,j,k,m,n);
printf ("\n");
posicaoIfElse (a,i,j,k,m,n);
```

the funtion parameters that I am passing are:rede.c:3: error: 'n' undeclared here (not in a function)

rede.c:68: error: 'n' undeclared here (not in a function)

rede.c: In function 'main':

rede.c:160: error: type of formal parameter 1 is incomplete

rede.c:162: error: type of formal parameter 1 is incomplete

Code:

```
int m = 7;
int n = m+1;
int e [n][n];
int a [n][n];
int i,j,k;
```

Last edited by a moderator: