Borderou de evaluare (job #3235417)
Utilizator | Data | 17 iunie 2024 19:49:50 | |
---|---|---|---|
Problema | Maimute | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int)':
main.cpp:18:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for(int i = 0; i < v[nod].size(); i++){
| ~~^~~~~~~~~~~~~~~
main.cpp: In function 'int next(int, int)':
main.cpp:29:17: error: 'log2' was not declared in this scope
29 | int l = log2(b);
| ^~~~
main.cpp: In function 'int main()':
main.cpp:61:14: error: 'log2' was not declared in this scope; did you mean 'lg'?
61 | int lg = log2(n);
| ^~~~
| lg
main.cpp:87:13: warning: unused variable 'l' [-Wunused-variable]
87 | int l = 0, r = n; // dist pe care o BS
| ^
main.cpp:87:20: warning: unused variable 'r' [-Wunused-variable]
87 | int l = 0, r = n; // dist pe care o BS
| ^
main.cpp:88:13: warning: unused variable 'sol' [-Wunused-variable]
88 | int sol = -1;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !