Borderou de evaluare (job #3133254)
Utilizator | Data | 25 mai 2023 13:22:35 | |
---|---|---|---|
Problema | Heapuri | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void delete_element(std::vector<std::pair<int, int> >&, int)':
main.cpp:37:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | while((2*i < h.size() && h[i].first > h[2*i].first) || (2*i+1 < h.size() && h[i].first > h[2*i+1].first)){
| ~~~~^~~~~~~~~~
main.cpp:37:67: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | while((2*i < h.size() && h[i].first > h[2*i].first) || (2*i+1 < h.size() && h[i].first > h[2*i+1].first)){
| ~~~~~~^~~~~~~~~~
main.cpp:38:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | if(2*i+1 >= h.size() || h[2*i + 1].first > h[2*i].first){
| ~~~~~~^~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:89:2: error: expected '}' at end of input
89 | }
| ^
main.cpp:59:1: note: to match this '{'
59 | {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !