Borderou de evaluare (job #1333592)

Utilizator VictoriaNevTascau Victoria VictoriaNev Data 3 februarie 2015 13:10:31
Problema Luna 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:22:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf ("%d", &a[i][j]); ^ user.cpp:41:66: error: ‘min’ was not declared in this scope d[i][j][k] = min (d[i][j - 1][k - 1], h[i][j]); ^ user.cpp:47:67: error: ‘max’ was not declared in this scope sol[a[i][j]][k] = max (sol[a[i][j]][k], d[i][j][k]); ^ user.cpp:56:22: error: ‘max’ was not declared in this scope if ((max(L, l) <= max(n, m) && min (L, l) <= min (n, m)) && (sol[cul][L] >= l || sol[cul][l] >= L)) ^ user.cpp:56:49: error: ‘min’ was not declared in this scope if ((max(L, l) <= max(n, m) && min (L, l) <= min (n, m)) && (sol[cul][L] >= l || sol[cul][l] >= L)) ^ user.cpp:13:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("luna.in", "r", stdin); ^ user.cpp:14:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("luna.out", "w", stdout); ^ user.cpp:18:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d", &n, &m); ^ user.cpp:22:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &a[i][j]); ^ user.cpp:51:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &k); ^ user.cpp:54:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d%d", &cul, &L, &l); ^

Ceva nu functioneaza?