Borderou de evaluare (job #2892857)

Utilizator AndreiAncutaAndrei Ancuta AndreiAncuta Data 23 aprilie 2022 19:34:08
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In instantiation of 'void IndexHeap<T>::sift_down(IndexHeap<T>::HeapIndex) [with T = int; IndexHeap<T>::HeapIndex = int]': main.cpp:84:13: required from 'void IndexHeap<T>::remove(IndexHeap<T>::ValIndex) [with T = int; IndexHeap<T>::ValIndex = unsigned int]' main.cpp:110:30: required from here main.cpp:41:28: warning: comparison of integer expressions of different signedness: 'IndexHeap<int>::HeapIndex' {aka 'int'} and 'std::vector<unsigned int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 41 | while ((left_child < heap.size() && | ~~~~~~~~~~~^~~~~~~~~~~~~ main.cpp:43:29: warning: comparison of integer expressions of different signedness: 'IndexHeap<int>::HeapIndex' {aka 'int'} and 'std::vector<unsigned int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 43 | (right_child < heap.size() && | ~~~~~~~~~~~~^~~~~~~~~~~~~ main.cpp:45:29: warning: comparison of integer expressions of different signedness: 'IndexHeap<int>::HeapIndex' {aka 'int'} and 'std::vector<unsigned int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 45 | if (right_child >= heap.size() || | ~~~~~~~~~~~~^~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
11ms274kbOK1010
21ms184kbOK1010
312ms282kbOK1010
46ms307kbOK1010
51ms184kbOK1060
680ms942kbOK10
7196ms5959kbOK10
8150ms3649kbOK10
9166ms1720kbOK10
10164ms1851kbOK10
Punctaj total100

Ceva nu functioneaza?