Borderou de evaluare (job #1189067)

Utilizator Aleks10FMI - Petrache Alex Aleks10 Data 21 mai 2014 11:42:43
Problema Lacusta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:14: warning: ISO C99 requires whitespace after the macro name [enabled by default] #define N_MAX=257 ^ user.cpp: In function ‘int main(int, const char**)’: user.cpp:10:14: error: expected primary-expression before ‘=’ token #define N_MAX=257 ^ user.cpp:15:28: note: in expansion of macro ‘N_MAX’ unsigned int n,m,i,j,a[N_MAX][N_MAX],b[N_MAX][N_MAX],min1,min2,jmin; ^ user.cpp:10:14: error: expected primary-expression before ‘=’ token #define N_MAX=257 ^ user.cpp:15:35: note: in expansion of macro ‘N_MAX’ unsigned int n,m,i,j,a[N_MAX][N_MAX],b[N_MAX][N_MAX],min1,min2,jmin; ^ user.cpp:10:14: error: expected primary-expression before ‘=’ token #define N_MAX=257 ^ user.cpp:15:44: note: in expansion of macro ‘N_MAX’ unsigned int n,m,i,j,a[N_MAX][N_MAX],b[N_MAX][N_MAX],min1,min2,jmin; ^ user.cpp:10:14: error: expected primary-expression before ‘=’ token #define N_MAX=257 ^ user.cpp:15:51: note: in expansion of macro ‘N_MAX’ unsigned int n,m,i,j,a[N_MAX][N_MAX],b[N_MAX][N_MAX],min1,min2,jmin; ^ user.cpp:23:16: error: ‘a’ was not declared in this scope f>>a[i][j]; ^ user.cpp:25:5: error: ‘b’ was not declared in this scope b[1][0]=32000; ^ user.cpp:27:17: error: ‘a’ was not declared in this scope b[1][i]=a[0][0]+a[0][i]+a[1][i]; ^ user.cpp:54:32: error: ‘a’ was not declared in this scope b[i+1][j]=min1+a[i][j]+a[i+1][j]; ^ user.cpp:56:27: error: ‘a’ was not declared in this scope b[i+1][j]=a[i][j]+a[i+1][j]+min2; ^ user.cpp:63:13: error: ‘a’ was not declared in this scope g<<min1+a[m-1][n-1]; ^

Ceva nu functioneaza?