Pagini recente » Borderou de evaluare (job #2351824) | Borderou de evaluare (job #2365695) | Borderou de evaluare (job #2139813) | Borderou de evaluare (job #1041542) | Borderou de evaluare (job #3295379)
Borderou de evaluare (job #3295379)
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 |
| 1 | 0ms | 303kb | OK | 5 |
| 2 | 0ms | 303kb | OK | 5 |
| 3 | 0ms | 303kb | OK | 5 |
| 4 | 24ms | 2039kb | OK | 5 |
| 5 | 24ms | 1986kb | OK | 5 |
| 6 | 23ms | 1974kb | OK | 5 |
| 7 | 0ms | 303kb | OK | 5 |
| 8 | 0ms | 303kb | OK | 5 |
| 9 | 0ms | 303kb | OK | 5 |
| 10 | 0ms | 303kb | OK | 5 |
| 11 | 18ms | 1323kb | OK | 5 |
| 12 | 19ms | 1523kb | OK | 5 |
| 13 | 19ms | 1544kb | OK | 5 |
| 14 | 19ms | 1536kb | OK | 5 |
| 15 | 0ms | 303kb | OK | 5 |
| 16 | 0ms | 303kb | OK | 5 |
| 17 | 0ms | 303kb | OK | 5 |
| 18 | 29ms | 2441kb | OK | 5 |
| 19 | 29ms | 2560kb | OK | 5 |
| 20 | 29ms | 2560kb | OK | 5 |
| Punctaj total | 100 |