Borderou de evaluare (job #3131672)
Utilizator | Data | 21 mai 2023 01:35:35 | |
---|---|---|---|
Problema | Heapuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void Heap::heapify(int)':
main.cpp:19:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | if(st<h.size() && h[st]<h[min])
| ~~^~~~~~~~~
main.cpp:21:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | if(dr<h.size() && h[dr]<h[min])
| ~~^~~~~~~~~
main.cpp: In member function 'void Heap::helperRemove(int)':
main.cpp:29:14: error: 'INT_MIN' was not declared in this scope
29 | h[i]=INT_MIN;
| ^~~~~~~
main.cpp:5:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <iostream>
+++ |+#include <climits>
5 |
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !