Borderou de evaluare (job #3122157)

Utilizator arobyRobert Acsente aroby Data 17 aprilie 2023 16:23:10
Problema Arbori binari de cautare echilibrati Status done
Runda arhiva-test Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In member function 'void Btree::insert_not_full(Node*, long long int)': main.cpp:88:30: warning: overflow in conversion from 'long int' to 'std::vector<int>::value_type' {aka 'int'} changes value from '9223372036854775807' to '-1' [-Woverflow] 88 | node->keys.push_back(LONG_MAX); | ^~~~~~~~ main.cpp:102:48: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 102 | if (node->children[i + 1]->keys.size() == (2 * (long)this->t - 1)) /// if the selected child is full we split it | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Btree::insert(long long int)': main.cpp:116:31: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 116 | if (old_root->keys.size() == ((2 * (long)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:133:24: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 133 | for (long i = 0; i < node->keys.size(); i++) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'bool Btree::find(long long int, Node*)': main.cpp:148:14: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 148 | while (i < node->keys.size() && k > node->keys[i]) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:150:11: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 150 | if (i < node->keys.size() && node->keys[i] == k) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Btree::deleteKey(Node*, long long int)': main.cpp:163:14: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 163 | while (i < node->keys.size() && k > node->keys[i]) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:167:15: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 167 | if (i < node->keys.size() && node->keys[i] == k) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:174:11: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 174 | if (i < node->keys.size() && node->keys[i] == k) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:176:45: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 176 | else if (node->children[i]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:181:29: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<Node*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 181 | if (i != 0 && i + 2 < node->children.size()) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:183:52: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 183 | if (node->children[i - 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:185:57: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 185 | else if (node->children[i + 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:192:52: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 192 | if (node->children[i + 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:199:23: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<Node*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 199 | if (i + 1 == node->children.size()) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms430kbKilled by Signal 110
29ms417kbKilled by Signal 110
39ms417kbKilled by Signal 110
44ms425kbKilled by Signal 110
59ms421kbKilled by Signal 110
610ms446kbKilled by Signal 110
74ms421kbKilled by Signal 110
810ms446kbKilled by Signal 110
94ms417kbKilled by Signal 110
1010ms438kbKilled by Signal 110
110ms421kbKilled by Signal 110
120ms413kbKilled by Signal 110
130ms434kbKilled by Signal 110
140ms421kbKilled by Signal 110
151ms442kbKilled by Signal 110
160ms425kbKilled by Signal 110
171ms434kbKilled by Signal 110
1811ms425kbKilled by Signal 110
1911ms540kbKilled by Signal 110
209ms425kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?