Borderou de evaluare (job #3130855)

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

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
16ms3178kbOK5
24ms2134kbOK5
34ms2129kbOK5
4151ms66748kbMemory limit exceeded0
5151ms66797kbMemory limit exceeded0
6151ms66928kbMemory limit exceeded0
72ms1081kbOK5
82ms1081kbOK5
92ms1081kbOK5
102ms1081kbOK5
11183ms65544kbMemory limit exceeded0
12182ms65642kbMemory limit exceeded0
13185ms66744kbMemory limit exceeded0
14183ms65654kbMemory limit exceeded0
152ms1081kbOK5
162ms1081kbOK5
172ms1081kbOK5
18187ms66801kbMemory limit exceeded0
19202ms66023kbTime limit exceeded0
20200ms66695kbTime limit exceeded0
Punctaj total50

Ceva nu functioneaza?