Borderou de evaluare (job #3122179)

Utilizator arobyRobert Acsente aroby Data 17 aprilie 2023 19:13:44
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:155:14: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 155 | while (i < node->keys.size() && k > node->keys[i]) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:158:11: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 158 | if (i < node->keys.size() && node->keys[i] == k) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Btree::deleteKey(Node*, long long int)': main.cpp:171:14: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 171 | while (i < node->keys.size() && k > node->keys[i]) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:175:15: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 175 | if (i < node->keys.size() && node->keys[i] == k) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:182:11: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 182 | if (i < node->keys.size() && node->keys[i] == k) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:184:45: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 184 | else if (node->children[i]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:189:29: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<Node*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 189 | if (i != 0 && i + 2 < node->children.size()) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:191:52: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 191 | if (node->children[i - 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:193:57: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 193 | else if (node->children[i + 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:200:52: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 200 | if (node->children[i + 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:207:23: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<Node*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 207 | if (i + 1 == node->children.size()) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbIncorect0
30ms303kbIncorect0
414ms2150kbIncorect0
514ms1888kbIncorect0
614ms2154kbIncorect0
70ms303kbIncorect0
80ms303kbIncorect0
90ms303kbIncorect0
100ms303kbIncorect0
1129ms1363kbIncorect0
1234ms1515kbIncorect0
1329ms1355kbIncorect0
1429ms1351kbIncorect0
150ms303kbIncorect0
160ms303kbIncorect0
170ms303kbIncorect0
1839ms2232kbIncorect0
1944ms2887kbIncorect0
2044ms2711kbIncorect0
Punctaj total0

Ceva nu functioneaza?