Borderou de evaluare (job #3373143)
| Utilizator | Data | 6 noiembrie 2026 09:34:50 | |
|---|---|---|---|
| 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 'int main()':
main.cpp:31:5: error: 'priority_queue' was not declared in this scope
31 | priority_queue<pair<int, int>> pq;
| ^~~~~~~~~~~~~~
main.cpp:4:1: note: 'std::priority_queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
3 | #include <vector>
+++ |+#include <queue>
4 |
main.cpp:31:33: error: expected primary-expression before '>' token
31 | priority_queue<pair<int, int>> pq;
| ^~
main.cpp:31:36: error: 'pq' was not declared in this scope; did you mean 'p'?
31 | priority_queue<pair<int, int>> pq;
| ^~
| p
main.cpp:35:13: warning: unused variable 'minim' [-Wunused-variable]
35 | int minim = 1e9;
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
