Borderou de evaluare (job #2906557)

Utilizator utilizator20052022utilizatorr utilizator20052022 Data 26 mai 2022 17:02:00
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 40

Raport evaluator

Compilare: main.cpp: In function 'void heapifyUp(int)': main.cpp:19:45: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 19 | while(indexParinte >= 0 && indexParinte < h.size()) | ~~~~~~~~~~~~~^~~~~~~~~~ main.cpp: In function 'void heapifyDown(int)': main.cpp:46:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 46 | if(copilIndex < 0 || copilIndex >= h.size()) return; | ~~~~~~~~~~~^~~~~~~~~~~ main.cpp:47:46: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 47 | if(copilIndex + 1 >= 0 && copilIndex + 1 <= h.size() - 1 && h[copilIndex+1].first < h[copilIndex].first) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.cpp:49:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 49 | while(copilIndex < h.size()) | ~~~~~~~~~~~^~~~~~~~~~ main.cpp:57:41: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 57 | if(copilIndex < 0 || copilIndex >= h.size()) return; | ~~~~~~~~~~~^~~~~~~~~~~ main.cpp:58:50: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 58 | if(copilIndex + 1 >= 0 && copilIndex + 1 <= h.size() - 1 && h[copilIndex+1].first < h[copilIndex].first) | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
11ms184kbOK1010
21ms184kbOK1010
31ms184kbOK1010
41ms184kbOK1010
51ms184kbIncorect00
645ms839kbOK10
7142ms2207kbOK10
895ms1769kbOK10
9132ms1134kbOK10
10136ms1122kbOK10
Punctaj total40

Ceva nu functioneaza?