Borderou de evaluare (job #1503749)

Utilizator ArkinyStoica Alex Arkiny Data 16 octombrie 2015 21:00:28
Problema Joc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:24:57: error: ‘abs’ was not declared in this scope D[i][j] = abs(A[i][j] - MAX(D[i - 1][j], D[i][j - 1])); ^ user.cpp:19:30: warning: unused variable ‘temp_i’ [-Wunused-variable] int max_dif = 1 << 31, l, c,temp_i,temp_j,a,b,sgn; ^ user.cpp:19:37: warning: unused variable ‘temp_j’ [-Wunused-variable] int max_dif = 1 << 31, l, c,temp_i,temp_j,a,b,sgn; ^ user.cpp:19:44: warning: unused variable ‘a’ [-Wunused-variable] int max_dif = 1 << 31, l, c,temp_i,temp_j,a,b,sgn; ^ user.cpp:19:46: warning: unused variable ‘b’ [-Wunused-variable] int max_dif = 1 << 31, l, c,temp_i,temp_j,a,b,sgn; ^ user.cpp:19:48: warning: unused variable ‘sgn’ [-Wunused-variable] int max_dif = 1 << 31, l, c,temp_i,temp_j,a,b,sgn; ^ user.cpp:13:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d%d", &N, &M); ^ user.cpp:17:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &A[i][j]); ^

Ceva nu functioneaza?