Borderou de evaluare (job #3122183)

Utilizator arobyRobert Acsente aroby Data 17 aprilie 2023 19:36:04
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:174:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 174 | for(int i=0;i<node->keys.size();i++) | ~^~~~~~~~~~~~~~~~~~ main.cpp:180:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Node*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 180 | for(int i=0;i<node->children.size();i++) | ~^~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Btree::deleteKey(Node*, long long int)': main.cpp:190:14: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 190 | while (i < node->keys.size() && k > node->keys[i]) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:194:15: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 194 | if (i < node->keys.size() && node->keys[i] == k) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:201:11: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 201 | if (i < node->keys.size() && node->keys[i] == k) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:203:45: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 203 | else if (node->children[i]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:208:29: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<Node*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 208 | if (i != 0 && i + 2 < node->children.size()) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:210:52: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 210 | if (node->children[i - 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:212:57: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 212 | else if (node->children[i + 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:219:52: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'long int' [-Wsign-compare] 219 | if (node->children[i + 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:226:23: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<Node*>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 226 | if (i + 1 == node->children.size()) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
24ms421kbKilled by Signal 110
30ms303kbIncorect0
44ms413kbKilled by Signal 110
59ms413kbKilled by Signal 110
69ms425kbKilled by Signal 110
70ms303kbIncorect0
80ms303kbIncorect0
90ms303kbIncorect0
100ms303kbIncorect0
1134ms1507kbIncorect0
124ms409kbKilled by Signal 110
139ms413kbKilled by Signal 110
1410ms430kbKilled by Signal 110
159ms413kbKilled by Signal 110
160ms303kbIncorect0
170ms303kbIncorect0
1811ms475kbKilled by Signal 110
1911ms475kbKilled by Signal 110
2044ms2764kbIncorect0
Punctaj total0

Ceva nu functioneaza?