Borderou de evaluare (job #3326290)

Utilizator fernandodoneaDonea Fernando-Emanuel fernandodonea Data 28 noiembrie 2025 00:01:16
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?