Borderou de evaluare (job #3205864)
Utilizator | Data | 20 februarie 2024 18:56:18 | |
---|---|---|---|
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 depth(int)':
main.cpp:9:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
9 | for( int i = 0; i < daddy[nod].size(); i++ ){
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp:11:9: error: 'level' was not declared in this scope
11 | level[nod] = level[daddy[nod][i]];
| ^~~~~
main.cpp:14:9: error: 'level' was not declared in this scope
14 | level[nod] = 1;
| ^~~~~
main.cpp: In function 'int main()':
main.cpp:27:27: error: expected primary-expression before ';' token
27 | for( int p2 = 0; p2 < ; p2++ ){
| ^
main.cpp:29:13: error: 'lca' was not declared in this scope
29 | lca[p2][i] = lca[p2]
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !