Borderou de evaluare (job #3129361)

Utilizator iordyIordache Andrei Tudor iordy Data 14 mai 2023 02:18:46
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 40

Raport evaluator

Compilare: main.cpp: In function 'void heapify(std::vector<int>&, int)': main.cpp:35:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 35 | if(left < heap.size() && heap[left] < heap[largest]) | ~~~~~^~~~~~~~~~~~~ main.cpp:40:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 40 | if(right < heap.size() && heap[right] < heap[largest]) | ~~~~~~^~~~~~~~~~~~~ main.cpp: In function 'void delete_element(std::vector<int>&, int)': main.cpp:66:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 66 | while (i < heap.size() && heap[i] != key) { | ~~^~~~~~~~~~~~~ main.cpp:70:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 70 | if (i < heap.size()) { | ~~^~~~~~~~~~~~~ main.cpp:73:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 73 | if (i < heap.size()) { | ~~^~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbOK1010
20ms303kbOK1010
30ms303kbOK1010
42ms557kbOK1010
50ms303kbIncorect00
634ms1937kbOK10
719ms5566kbOK10
8129ms3796kbTime limit exceeded0
9129ms3956kbTime limit exceeded0
10129ms3907kbTime limit exceeded0
Punctaj total40

Ceva nu functioneaza?