Borderou de evaluare (job #3125910)

Utilizator CiobanuPaulCiobanu Ioan-Paul CiobanuPaul Data 4 mai 2023 19:18:35
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 'int Node::keyBinarySearch(int, int, int) const': main.cpp:27:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 27 | if(m == keys.size()-1 || x < keys[m+1]) | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'std::tuple<Node*, int> Btree::searchTree(int, Node*) const': main.cpp:67:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 67 | if(p != node->keys.size() && node->keys[p] == x) | ~~^~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'bool Btree::isFound(int) const': main.cpp:78:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 78 | if(p < node->keys.size() && node->keys[p] == x) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'int Btree::lower(int, Node*) const': main.cpp:87:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 87 | while(i<node->keys.size() && node->keys[i] <= x) | ~^~~~~~~~~~~~~~~~~~ main.cpp: In member function 'int Btree::higher(int, Node*)': main.cpp:112:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 112 | while(i<node->keys.size() && node->keys[i] < x) | ~^~~~~~~~~~~~~~~~~~ main.cpp:114:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 114 | if(i < node->keys.size()) { | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:121:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 121 | if (i == node->keys.size())//we don't have guess1 | ~~^~~~~~~~~~~~~~~~~~~~ main.cpp:130:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 130 | return i < node->keys.size() ? node->keys[i] : node->keys[i - 1]; | ~~^~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Btree::between(int, int, bool, Node*)': main.cpp:141:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 141 | for (i = 0; i < node->keys.size(); i++) { | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:149:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 149 | for(i=0; i<node->keys.size(); i++) | ~^~~~~~~~~~~~~~~~~~ main.cpp:155:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 155 | if(pos < node->keys.size() && node->keys[pos] == x) { | ~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:160:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 160 | while (pos < node->keys.size() && node->keys[pos] <= y) { | ~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:161:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 161 | if (pos < node->keys.size() && node->keys[pos] <= y && p != pos) | ~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:173:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 173 | while (pos < node->keys.size() && node->keys[pos] <= y) { | ~~~~^~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Btree::divideNode(Node*)': main.cpp:227:33: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms389kbKilled by Signal 110
24ms393kbKilled by Signal 110
34ms389kbKilled by Signal 110
44ms397kbKilled by Signal 110
59ms389kbKilled by Signal 110
68ms389kbKilled by Signal 110
78ms389kbKilled by Signal 110
84ms393kbKilled by Signal 110
94ms389kbKilled by Signal 110
108ms393kbKilled by Signal 110
110ms393kbKilled by Signal 110
120ms389kbKilled by Signal 110
130ms389kbKilled by Signal 110
140ms389kbKilled by Signal 110
150ms397kbKilled by Signal 110
160ms397kbKilled by Signal 110
170ms389kbKilled by Signal 110
1810ms389kbKilled by Signal 110
199ms397kbKilled by Signal 110
208ms393kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?