Borderou de evaluare (job #3130848)

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

Raport evaluator

Compilare: main.cpp: In instantiation of 'bool Tree234<T>::remove(T) [with T = int]': main.cpp:799:15: required from here main.cpp:685: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] 685 | 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:294: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:273: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
1203ms303kbTime limit exceeded0
20ms303kbOK5
30ms303kbOK5
4203ms303kbTime limit exceeded0
5203ms303kbTime limit exceeded0
6203ms303kbTime limit exceeded0
71ms303kbIncorect0
81ms303kbIncorect0
91ms303kbIncorect0
101ms303kbIncorect0
11203ms303kbTime limit exceeded0
12203ms303kbTime limit exceeded0
13203ms303kbTime limit exceeded0
14203ms303kbTime limit exceeded0
151ms303kbIncorect0
16203ms303kbTime limit exceeded0
171ms303kbIncorect0
18203ms516kbTime limit exceeded0
19203ms303kbTime limit exceeded0
20203ms303kbTime limit exceeded0
Punctaj total10

Ceva nu functioneaza?