Borderou de evaluare (job #1510557)

Utilizator bciobanuBogdan Ciobanu bciobanu Data 25 octombrie 2015 12:16:03
Problema Heavy Path Decomposition Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:25:21: error: size of array ‘T’ is too large int T[Hmax][2 * Nmax]; // arbori de intervale ^ user.cpp: In function ‘void buildSegmentedTrees(int)’: user.cpp:77:9: error: ‘T’ was not declared in this scope T[path[i]][posPath[i] + lenPath[path[i]]] = key[i]; ^ user.cpp:81:13: error: ‘T’ was not declared in this scope T[i][j] = max(T[i][2 * j], T[i][2 * j + 1]); ^ user.cpp: In function ‘void update(int, int)’: user.cpp:90:5: error: ‘T’ was not declared in this scope T[p][q] = key; ^ user.cpp: In function ‘int segQuery(int, int, int)’: user.cpp:109:34: error: ‘T’ was not declared in this scope answer = max(answer, T[path][u]); ^ user.cpp:114:34: error: ‘T’ was not declared in this scope answer = max(answer, T[path][v]); ^ user.cpp: In function ‘int main()’: user.cpp:134:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("heavypath.in", "r", stdin); ^ user.cpp:135:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("heavypath.out", "w", stdout); ^ user.cpp:139:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ user.cpp:143:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &key[i]); ^ user.cpp:146:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &u, &v); ^ user.cpp:155:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &tip, &u, &v); ^

Ceva nu functioneaza?