Borderou de evaluare (job #2891331)

Utilizator AndreiAncutaAndrei Ancuta AndreiAncuta Data 18 aprilie 2022 11:24:31
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 10

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:75:13: required from 'void IndexHeap<T>::remove(IndexHeap<T>::ValIndex) [with T = int; IndexHeap<T>::ValIndex = unsigned int]' main.cpp:101:30: required from here main.cpp:34: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] 34 | while ((left_child < heap.size() && heap[node] > heap[left_child]) || | ~~~~~~~~~~~^~~~~~~~~~~~~ main.cpp:35: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] 35 | (right_child < heap.size() && heap[node] > heap[right_child])) { | ~~~~~~~~~~~~^~~~~~~~~~~~~ main.cpp:36: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] 36 | if (right_child >= heap.size() || | ~~~~~~~~~~~~^~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
11ms184kbOK1010
21ms184kbIncorect00
31ms184kbIncorect00
46ms307kbIncorect00
51ms184kbIncorect00
696ms1380kbIncorect0
7173ms5971kbIncorect0
8154ms4554kbIncorect0
9250ms2191kbTime limit exceeded0
10185ms2322kbIncorect0
Punctaj total10

Ceva nu functioneaza?