Borderou de evaluare (job #3130871)

Utilizator DevCrutCorolevschi Mihai DevCrut Data 18 mai 2023 18:50:35
Problema Arbori binari de cautare echilibrati Status done
Runda arhiva-test Compilator cpp-64 | Vezi sursa
Scor 15

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:843:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int, std::allocator<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 843 | for (int i = 0; i < bucket.size(); ++i) { | ~~^~~~~~~~~~~~~~~ main.cpp: In instantiation of 'bool Tree234<T>::remove(T) [with T = int]': main.cpp:821:15: required from here main.cpp:703:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int, std::allocator<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 703 | for (int i = 0; i < elems.size(); ++i) { | ~~^~~~~~~~~~~~~~ In member function 'void Node<T>::removeValue(int) [with T = int]', inlined from 'void Tree234<T>::insert(T) [with T = int]' at main.cpp:312:30: main.cpp:92:65: warning: array subscript 3 is above array bounds of 'bool [3]' [-Warray-bounds] 92 | this->children[i] = this->children[i + 1]; | ~~~~~~~~~~~~~~~~~~~~^ main.cpp: In member function 'void Tree234<T>::insert(T) [with T = int]': main.cpp:16:14: note: while referencing 'Node<int>::children' 16 | bool children[3]; | ^~~~~~~~ In member function 'void Node<T>::removeValue(int) [with T = int]', inlined from 'void Tree234<T>::insert(T) [with T = int]' at main.cpp:291:30: main.cpp:92:65: warning: array subscript 3 is above array bounds of 'bool [3]' [-Warray-bounds] 92 | this->children[i] = this->children[i + 1]; | ~~~~~~~~~~~~~~~~~~~~^ main.cpp: In member function 'void Tree234<T>::insert(T) [with T = int]': main.cpp:16:14: note: while referencing 'Node<int>::children' 16 | bool children[3]; | ^~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK5
20ms303kbOK5
30ms303kbOK5
4203ms303kbTime limit exceeded0
5203ms303kbTime limit exceeded0
6203ms303kbTime limit exceeded0
71ms303kbIncorect0
81ms303kbIncorect0
91ms303kbIncorect0
101ms303kbIncorect0
11203ms565kbTime limit exceeded0
12203ms303kbTime limit exceeded0
13203ms569kbTime limit exceeded0
14203ms303kbTime limit exceeded0
151ms303kbIncorect0
161ms303kbIncorect0
171ms303kbIncorect0
18203ms544kbTime limit exceeded0
19203ms667kbTime limit exceeded0
20203ms548kbTime limit exceeded0
Punctaj total15

Ceva nu functioneaza?