Borderou de evaluare (job #3211923)

Utilizator raizoSoare Antonio raizo Data 10 martie 2024 18:24:07
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:80:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 80 | for (int i = 0; i < vec.size(); i++) { | ~~^~~~~~~~~~~~ main.cpp: In instantiation of 'void heapSort(std::vector<Type>&) [with Type = int]': main.cpp:79:13: required from here main.cpp:59:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 59 | for (int i = 0; i < vec.size(); i++) { | ~~^~~~~~~~~~~~ main.cpp:62:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 62 | for (int i = 0; i < vec.size(); i++) { | ~~^~~~~~~~~~~~ main.cpp: In instantiation of 'Type Heap<Type>::pop() [with Type = int]': main.cpp:63:26: required from 'void heapSort(std::vector<Type>&) [with Type = int]' main.cpp:79:13: required from here main.cpp:28:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 28 | if (son < heap.size()) { | ~~~~^~~~~~~~~~~~~ main.cpp:29:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 29 | if (son + 1 < heap.size() && heap[son] > heap[son + 1]) { | ~~~~~~~~^~~~~~~~~~~~~ main.cpp:36:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 36 | if (son >= heap.size()) { break; } | ~~~~^~~~~~~~~~~~~~ main.cpp:37:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 37 | if (son + 1 < heap.size() && heap[son] > heap[son + 1]) { | ~~~~~~~~^~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbOK520
20ms303kbOK5
30ms303kbOK5
40ms303kbOK5
50ms303kbOK520
60ms303kbOK5
70ms303kbOK5
80ms303kbOK5
919ms1732kbOK520
1014ms1740kbOK5
1114ms1470kbOK5
1214ms1466kbOK5
1369ms4845kbOK520
1449ms4939kbOK5
1554ms4853kbOK5
1664ms4927kbOK5
17103ms6447kbOK520
1873ms6553kbOK5
1978ms6889kbOK5
2088ms6791kbOK5
Punctaj total100

Ceva nu functioneaza?