Borderou de evaluare (job #3211921)

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

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:79:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 79 | for (int i = 0; i < vec.size(); i++) { | ~~^~~~~~~~~~~~ main.cpp: In instantiation of 'void heapSort(std::vector<Type>&) [with Type = int]': main.cpp:78: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:78: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
110ms405kbKilled by Signal 1100
210ms401kbKilled by Signal 110
310ms401kbKilled by Signal 110
410ms393kbKilled by Signal 110
510ms405kbKilled by Signal 1100
610ms405kbKilled by Signal 110
710ms405kbKilled by Signal 110
810ms405kbKilled by Signal 110
910ms405kbKilled by Signal 1100
1010ms405kbKilled by Signal 110
110ms405kbKilled by Signal 110
120ms405kbKilled by Signal 110
130ms401kbKilled by Signal 1100
140ms405kbKilled by Signal 110
150ms405kbKilled by Signal 110
160ms401kbKilled by Signal 110
170ms409kbKilled by Signal 1100
1811ms401kbKilled by Signal 110
1910ms409kbKilled by Signal 110
2010ms401kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?