Borderou de evaluare (job #3123652)

Utilizator TediCutuTudor Chitu TediCutu Data 25 aprilie 2023 00:13:33
Problema Arbori binari de cautare echilibrati Status done
Runda arhiva-test Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'Node* find_node(Node*, int)': main.cpp:45:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 45 | for (int i = 0; i < node->keys.size(); i++) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:49:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 49 | if (i == node->keys.size() - 1) | ~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int get_index(Node*, Node*)': main.cpp:56:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Node*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 56 | for (int i = 0; i < parent->children.size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void traverse(Node*)': main.cpp:189:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 189 | for(int i = 0; i< node->keys.size(); i++) | ~^~~~~~~~~~~~~~~~~~~ main.cpp: In function 'void linii(Node*)': main.cpp:337:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 337 | for(int i = 0; i <nod->keys.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp:340:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Node*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 340 | for(int i = 0; i <nod->children.size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'bool search(Node*, int)': main.cpp:345:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 345 | for(int i = 0; i < node->keys.size(); i++) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:349:34: warning: comparison of integer expressions of different signedness: 'std::vector<Node*>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 349 | if(node->children.size() > i) | ~~~~~~~~~~~~~~~~~~~~~~^~~ main.cpp: In function 'int precedent(Node*, int)': main.cpp:367:1: warning: no return statement in function returning non-void [-Wreturn-type] 367 | } | ^ main.cpp: In function 'Node* find_node(Node*, int)': main.cpp:52:1: warning: control reaches end of non-void function [-Wreturn-type] 52 | } | ^ main.cpp: In function 'int get_index(Node*, Node*)': main.cpp:63:1: warning: control reaches end of non-void function [-Wreturn-type] 63 | } | ^ main.cpp: In function 'bool search(Node*, int)': main.cpp:362:1: warning: control reaches end of non-void function [-Wreturn-type] 362 | } | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbIncorect0
30ms303kbIncorect0
40ms303kbIncorect0
50ms303kbIncorect0
60ms303kbIncorect0
70ms303kbIncorect0
80ms303kbIncorect0
90ms303kbIncorect0
100ms303kbIncorect0
110ms303kbIncorect0
120ms303kbIncorect0
130ms303kbIncorect0
140ms303kbIncorect0
150ms303kbIncorect0
160ms303kbIncorect0
170ms303kbIncorect0
180ms303kbIncorect0
190ms303kbIncorect0
200ms303kbIncorect0
Punctaj total0

Ceva nu functioneaza?