Borderou de evaluare (job #2857498)

Utilizator monica_LMonica monica_L Data 25 februarie 2022 18:09:59
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int)': main.cpp:16:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 16 | for(i=0; i<v[nod].size(); i++) | ~^~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:53:17: error: 'x1' was not declared in this scope; did you mean 'x'? 53 | if (h[d[x1][k]] <h[d[y1-(1<<k)+1][k]]) a=d[x1][k]; | ^~ | x main.cpp:53:21: error: 'k' was not declared in this scope 53 | if (h[d[x1][k]] <h[d[y1-(1<<k)+1][k]]) a=d[x1][k]; | ^ main.cpp:27:24: warning: unused variable 'aux' [-Wunused-variable] 27 | int n, m, t, i, j, aux, x, y, p, a; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?