Borderou de evaluare (job #1498506)

Utilizator tudoroprisTudor Opris tudoropris Data 8 octombrie 2015 18:04:24
Problema Alpin Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:9:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘H1’ int far H1[202][101], far H2[202][101]; ^ user.c:10:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘L1’ unsigned far L1[202][101], far L2[202][101]; ^ user.c:11:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘D’ char far D[202][202]; ^ user.c:12:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘F’ char far F[202][202]; ^ user.c:14:11: error: expected identifier or ‘(’ before ‘&’ token inline int& H(int X, int Y) { if (Y >= 101) return H2[X][Y-101]; else return H1[X][Y]; } ^ user.c:15:16: error: expected identifier or ‘(’ before ‘&’ token inline unsigned& L(int X, int Y) { if (Y >= 101) return L2[X][Y-101]; else return L1[X][Y]; } ^ user.c: In function ‘ReadData’: user.c:23:4: warning: implicit declaration of function ‘H’ [-Wimplicit-function-declaration] fscanf(f, "%d", &H(i,j)); ^ user.c:23:20: error: lvalue required as unary ‘&’ operand fscanf(f, "%d", &H(i,j)); ^ user.c:24:7: error: ‘i’ undeclared (first use in this function) for (i = 1; i <= N; i++) ^ user.c:24:7: note: each undeclared identifier is reported only once for each function it appears in user.c:25:8: error: ‘j’ undeclared (first use in this function) for (j = 1; j <= N; j++) ^ user.c:27:38: error: ‘D’ undeclared (first use in this function) if (i > 1) if (H(i-1,j) < H(i,j)) D[i][j] = D[i][j] | Up; ^ user.c:31:4: error: ‘F’ undeclared (first use in this function) F[i][j] = D[i][j]; ^ user.c: In function ‘MakeMatrix’: user.c:41:9: error: ‘D’ undeclared (first use in this function) if (!D[i][j]) ^ user.c:49:9: error: ‘F’ undeclared (first use in this function) if (F[i][j] & Down) { if (L(i+1,j) >= L(i,j)) L(i,j) = L(i+1,j) + 1; } ^ user.c:49:5: warning: implicit declaration of function ‘L’ [-Wimplicit-function-declaration] if (F[i][j] & Down) { if (L(i+1,j) >= L(i,j)) L(i,j) = L(i+1,j) + 1; } ^ user.c:49:58: error: lvalue required as left operand of assignment if (F[i][j] & Down) { if (L(i+1,j) >= L(i,j)) L(i,j) = L(i+1,j) + 1; }

Ceva nu functioneaza?