Borderou de evaluare (job #2906082)
Utilizator | Data | 24 mai 2022 22:29:58 | |
---|---|---|---|
Problema | Arbori binari de cautare echilibrati | Status | done |
Runda | arhiva-test | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In copy constructor 'node::node(const node&)':
main.cpp:27:9: error: 'memcpy' was not declared in this scope
27 | memcpy(above, node1.above, sizeof(node1));
| ^~~~~~
main.cpp:6:1: note: 'memcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
5 | #include <fstream>
+++ |+#include <cstring>
6 |
main.cpp: In member function 'node node::operator==(const node&)':
main.cpp:34:9: error: 'memcpy' was not declared in this scope
34 | memcpy(above, node1.above, sizeof(node1));
| ^~~~~~
main.cpp:34:9: note: 'memcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp: In member function 'int skip_list::generateLevel()':
main.cpp:168:34: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
168 | while (lvl < maxh && val & 1 == 1) {
| ~~^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !