Borderou de evaluare (job #1918821)

Utilizator paunmatei7FMI Paun Matei paunmatei7 Data 9 martie 2017 16:59:33
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int father(int)’: user.cpp:19:13: error: ‘T’ was not declared in this scope if(i == T[i]) { ^ user.cpp:22:19: error: ‘T’ was not declared in this scope return father(T[i]); ^ user.cpp: In function ‘int unite(int, int)’: user.cpp:33:9: error: ‘T’ was not declared in this scope T[i] = i; ^ user.cpp:36:9: error: ‘T’ was not declared in this scope T[i] = j; ^ user.cpp:39:9: error: ‘T’ was not declared in this scope T[j] = i; ^ user.cpp: In function ‘int main()’: user.cpp:52:9: error: ‘T’ was not declared in this scope T[i] = i; ^ user.cpp: In function ‘int father(int)’: user.cpp:23:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:45:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("apm.in", "r", stdin); ^ user.cpp:46:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("apm.out", "w", stdout); ^ user.cpp:47: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:49:59: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d\n", &a[i].x , &a[i].y, &a[i].cost); ^

Ceva nu functioneaza?