Borderou de evaluare (job #3326289)
| Utilizator | Data | 27 noiembrie 2025 23:59:59 | |
|---|---|---|---|
| Problema | Apm2 | Status | done |
| Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:23:1: error: 'priority_queue' does not name a type
23 | priority_queue<pair<int,int>> PQ; // max-heap; dam push {-cost,nod} ca sa fie min heap
| ^~~~~~~~~~~~~~
main.cpp: In function 'void initalizare()':
main.cpp:60:5: error: 'PQ' was not declared in this scope
60 | PQ.push({-d[1],1});
| ^~
main.cpp: In function 'void prim()':
main.cpp:65:12: error: 'PQ' was not declared in this scope
65 | while(!PQ.empty())
| ^~
main.cpp: In function 'int muchie_cost_maxim(int, int)':
main.cpp:114:5: error: 'PQ' was not declared in this scope
114 | PQ.push({x,0}); // {nod,cost_maxim_pe_drum}
| ^~
main.cpp:115:11: warning: control reaches end of non-void function [-Wreturn-type]
115 | viz[x]=1;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
