Borderou de evaluare (job #1803377)

Utilizator alex_HarryBabalau Alexandru alex_Harry Data 11 noiembrie 2016 12:54:04
Problema Carray 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:31:13: error: ‘Father’ was not declared in this scope Father[0][i] = x; ^ user.cpp:33:21: error: invalid types ‘long long int[int]’ for array subscript Sum[0][i] = 0; ^ user.cpp:38:13: error: ‘Father’ was not declared in this scope Father[0][i] = y; ^ user.cpp:39:21: error: invalid types ‘long long int[int]’ for array subscript Sum[0][i] = Len[x]; ^ user.cpp: In function ‘void DFS(int, int)’: user.cpp:48:24: error: ‘G’ was not declared in this scope for(int i = 0; i < G[node].size(); i++) ^ user.cpp:63:21: error: ‘cnt’ was not declared in this scope C[node] = ++cnt; ^ user.cpp:70:28: error: ‘G’ was not declared in this scope for(int i = 0; i < G[node].size(); i++) ^ user.cpp: In function ‘void rev()’: user.cpp:83:25: error: ‘cnt’ was not declared in this scope for(int i = 1; i <= cnt; i++) ^ user.cpp:84:49: error: ‘reverse’ was not declared in this scope reverse(Chain[i].begin(), Chain[i].end()); ^ user.cpp:85:25: error: ‘cnt’ was not declared in this scope for(int i = 1; i <= cnt; i++) ^ user.cpp:86:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < Chain[i].size(); j++) ^ user.cpp: In function ‘void precalcFather()’: user.cpp:98:13: error: ‘Father’ was not declared in this scope Father[i][j] = Father[i - 1][Father[i - 1][j]]; ^ user.cpp:99:35: error: invalid types ‘long long int[int]’ for array subscript if(LMax - Sum[i - 1][j] >= Sum[i - 1][Father[i - 1][j]]) ^ user.cpp:100:25: error: invalid types ‘long long int[int]’ for array subscript Sum[i][j] = Sum[i - 1][j] + Sum[i - 1][Father[i - 1][j]]; ^ user.cpp:100:41: error: invalid types ‘long long int[int]’ for array subscript Sum[i][j] = Sum[i - 1][j] + Sum[i - 1][Father[i - 1][j]]; ^ user.cpp:102:25: error: invalid types ‘long long int[int]’ for array subscript

Ceva nu functioneaza?