Borderou de evaluare (job #3295379)

Utilizator cristia_razvanCristia Razvan cristia_razvan Data 4 mai 2025 20:21:42
Problema Arbori binari de cautare echilibrati Status done
Runda arhiva-test Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In member function 'void Node::traverse()': main.cpp:23:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 23 | for (int i = 0; i < keys.size(); i++) { | ~~^~~~~~~~~~~~~ main.cpp: In member function 'Node* Node::search(int)': main.cpp:32:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 32 | while (i < keys.size() && val > keys[i]) i++; | ~~^~~~~~~~~~~~~ main.cpp:33:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 33 | if (i < keys.size() && keys[i] == val) return this; | ~~^~~~~~~~~~~~~ main.cpp: In member function 'void Node::insert(int)': main.cpp:70:42: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 70 | if (children[i]->keys.size() == (t << 1) - 1) { | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.cpp: In member function 'int Node::findKeyIdx(int)': main.cpp:82:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 82 | while (idx < keys.size() && keys[idx] < val) idx++; | ~~~~^~~~~~~~~~~~~ main.cpp: In member function 'void Node::remove(int)': main.cpp:102:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 102 | if (idx < keys.size() && keys[idx] == val) { | ~~~~^~~~~~~~~~~~~ main.cpp:112:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 112 | bool atLast = (idx == keys.size()); | ~~~~^~~~~~~~~~~~~~ main.cpp:113:44: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 113 | if (children[idx]->keys.size() < t) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ main.cpp:116:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 116 | if (atLast && idx > keys.size()) | ~~~~^~~~~~~~~~~~~ main.cpp: In member function 'void Node::removeWithChange(int)': main.cpp:126:40: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 126 | if (children[idx]->keys.size() >= t) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:130:51: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 130 | } else if (children[idx + 1]->keys.size() >= t) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp: In member function 'void Node::fillChild(int)': main.cpp:180:55: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 180 | if (idx > 0 && children[idx - 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:182:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 182 | else if (idx != keys.size() && children[idx + 1]->keys.size() >= t) | ~~~~^~~~~~~~~~~~~~ main.cpp:182:71: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 182 | else if (idx != keys.size() && children[idx + 1]->keys.size() >= t) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ main.cpp:185:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK5
20ms303kbOK5
30ms303kbOK5
424ms2039kbOK5
524ms1986kbOK5
623ms1974kbOK5
70ms303kbOK5
80ms303kbOK5
90ms303kbOK5
100ms303kbOK5
1118ms1323kbOK5
1219ms1523kbOK5
1319ms1544kbOK5
1419ms1536kbOK5
150ms303kbOK5
160ms303kbOK5
170ms303kbOK5
1829ms2441kbOK5
1929ms2560kbOK5
2029ms2560kbOK5
Punctaj total100

Ceva nu functioneaza?