Borderou de evaluare (job #1642551)

Utilizator akaprosAna Kapros akapros Data 9 martie 2016 14:51:34
Problema Intersectii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void read()’: user.cpp:8:32: error: ‘n’ was not declared in this scope scanf("%d %d %d", &h, &w, &n); ^ user.cpp:9:10: error: ‘i’ was not declared in this scope for (i = 1; i <= h; ++ i) ^ user.cpp:10:14: error: ‘j’ was not declared in this scope for (j = 1; j <= w; ++ j) ^ user.cpp:14:9: error: ‘d’ was not declared in this scope d = min(i, j); ^ user.cpp: In function ‘void write()’: user.cpp:27:22: error: ‘n’ was not declared in this scope for (i = 1; i <= n; ++ i) ^ user.cpp:32:24: error: ‘ans’ was not declared in this scope printf("%d\n", ans); ^ user.cpp: In function ‘void read()’: user.cpp:7:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("intersectii.in", "r", stdin); ^ user.cpp: In function ‘void write()’: user.cpp:26:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("intersectii.out", "w", stdout); ^ user.cpp:30:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^

Ceva nu functioneaza?