Borderou de evaluare (job #1838862)

Utilizator mdiannnaMarusic Diana mdiannna Data 1 ianuarie 2017 22:24:22
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int minimEuler(int, int)’: user.cpp:130:5: error: ‘pos_a’ was not declared in this scope pos_a = pos[a]; ^ user.cpp:131:5: error: ‘pos_b’ was not declared in this scope pos_b = pos[b]; ^ user.cpp: In function ‘int main()’: user.cpp:145:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lca.in", "r", stdin); ^ user.cpp:146:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lca.out", "w", stdout); ^ user.cpp:148: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:171:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &a, &b); ^

Ceva nu functioneaza?