Borderou de evaluare (job #2778249)
Utilizator | Data | 30 septembrie 2021 22:15:47 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void upheap(int)':
main.cpp:16:18: error: 'h' was not declared in this scope
16 | while(i>1 && h[i] < h[i/2])
| ^
main.cpp: In function 'void add_heap(muchii)':
main.cpp:26:5: error: 'h' was not declared in this scope
26 | h[k]=val;
| ^
main.cpp: In function 'int main()':
main.cpp:36:23: error: could not convert 'u[i].muchii::c' from 'int' to 'muchii'
36 | add_heap(u[i].c);
| ~~~~~^
| |
| int
main.cpp:49:7: error: 'h' was not declared in this scope
49 | s=h[1];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !