Borderou de evaluare (job #3122113)

Utilizator arobyRobert Acsente aroby Data 17 aprilie 2023 12:28:38
Problema Arbori binari de cautare echilibrati Status done
Runda arhiva-test Compilator cpp-32 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In member function 'void Btree::insert_not_full(Node*, int)': main.cpp:98:48: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] 98 | if (node->children[i + 1]->keys.size() == (2 * this->t - 1)) /// if the selected child is full we split it | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Btree::insert(int)': main.cpp:111:31: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] 111 | if (old_root->keys.size() == ((2 * this->t) - 1)) // if the root is full add a new node to the tree and make it the new root | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Btree::printTree(Node*, int)': main.cpp:127:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 127 | for (int i = 0; i < node->keys.size(); i++) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'bool Btree::find(int, Node*)': main.cpp:142:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 142 | while (i < node->keys.size() && k > node->keys[i]) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:144:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 144 | if (i < node->keys.size() && node->keys[i] == k) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Btree::deleteKey(Node*, int)': main.cpp:157:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 157 | while (i < node->keys.size() && k > node->keys[i]) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:161:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 161 | if (i < node->keys.size() && node->keys[i] == k) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:168:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 168 | if (i < node->keys.size() && node->keys[i] == k) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:170:45: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] 170 | else if (node->children[i]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:175:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Node*>::size_type' {aka 'unsigned int'} [-Wsign-compare] 175 | if (i != 0 && i + 2 < node->children.size()) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:177:52: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] 177 | if (node->children[i - 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:179:57: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] 179 | else if (node->children[i + 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:186:52: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] 186 | if (node->children[i + 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:191:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Node*>::size_type' {aka 'unsigned int'} [-Wsign-compare] 191 | else if (i + 1 == node->children.size()) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:192:52: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] 192 | if (node->children[i - 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
19ms401kbKilled by Signal 110
29ms401kbKilled by Signal 110
39ms397kbKilled by Signal 110
49ms397kbKilled by Signal 110
59ms401kbKilled by Signal 110
69ms401kbKilled by Signal 110
79ms401kbKilled by Signal 110
89ms401kbKilled by Signal 110
99ms401kbKilled by Signal 110
109ms397kbKilled by Signal 110
110ms405kbKilled by Signal 110
120ms401kbKilled by Signal 110
130ms397kbKilled by Signal 110
140ms401kbKilled by Signal 110
150ms401kbKilled by Signal 110
160ms397kbKilled by Signal 110
170ms401kbKilled by Signal 110
180ms405kbKilled by Signal 110
190ms397kbKilled by Signal 110
200ms401kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?