Borderou de evaluare (job #3183203)
Utilizator | Data | 11 decembrie 2023 08:21:45 | |
---|---|---|---|
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, int)':
main.cpp:16:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for(int j=0;j<V[x].size();j++)
| ~^~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:40:9: error: 'l' was not declared in this scope
40 | for(l=1;(1<<l)<=k;l++)
| ^
main.cpp:45:13: error: 'j' was not declared in this scope
45 | j=i+(1<<(l-1));
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !