Borderou de evaluare (job #1685049)

Utilizator mateibanuBanu Matei Costin mateibanu Data 11 aprilie 2016 14:31:51
Problema Spider Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:2: error: invalid preprocessing directive #defibe #defibe DIM 1001 ^ user.cpp:11:7: error: ‘DIM’ was not declared in this scope int a[DIM][DIM]; ^ user.cpp:11:12: error: ‘DIM’ was not declared in this scope int a[DIM][DIM]; ^ user.cpp:12:7: error: ‘DIM’ was not declared in this scope int b[DIM][DIM]; ^ user.cpp:12:12: error: ‘DIM’ was not declared in this scope int b[DIM][DIM]; ^ user.cpp:14:1: error: expected ‘,’ or ‘;’ before ‘int’ int dl[4]={-1,0,1,0} ^ user.cpp: In function ‘int main()’: user.cpp:20:10: error: ‘i’ was not declared in this scope for (i=1;i<=m;i++) ^ user.cpp:21:14: error: ‘j’ was not declared in this scope for (j=1;j<=n;j++) ^ user.cpp:22:24: error: ‘a’ was not declared in this scope fscanf(f,"%d",&a[i][j]); ^ user.cpp:23:10: error: ‘i’ was not declared in this scope for (i=1;i<=m;i++) {a[i][0]=MAX;a[i][n+1]=MAX;} ^ user.cpp:23:25: error: ‘a’ was not declared in this scope for (i=1;i<=m;i++) {a[i][0]=MAX;a[i][n+1]=MAX;} ^ user.cpp:24:10: error: ‘i’ was not declared in this scope for (i=1;i<=n;i++) {a[0][i]=MAX;a[n+1][i]=MAX;}= ^ user.cpp:24:25: error: ‘a’ was not declared in this scope for (i=1;i<=n;i++) {a[0][i]=MAX;a[n+1][i]=MAX;}= ^ user.cpp:24:52: error: expected primary-expression before ‘=’ token for (i=1;i<=n;i++) {a[0][i]=MAX;a[n+1][i]=MAX;}= ^ user.cpp:25:5: error: expected primary-expression before ‘for’ for (x=1;x<=m;x++) ^ user.cpp:25:5: error: expected ‘;’ before ‘for’ user.cpp:25:14: error: ‘x’ was not declared in this scope for (x=1;x<=m;x++) ^

Ceva nu functioneaza?