Borderou de evaluare (job #3270737)
Utilizator | Data | 24 ianuarie 2025 12:08:41 | |
---|---|---|---|
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 prim()':
main.cpp:25:35: error: 'INT_MAX' was not declared in this scope
25 | std::vector tata(n, -1), d(n, INT_MAX);
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <queue>
+++ |+#include <climits>
5 |
main.cpp:25:5: error: inconsistent deduction for 'vector<...auto...>': 'std::vector<int, std::allocator<int> >' and then '<type error>'
25 | std::vector tata(n, -1), d(n, INT_MAX);
| ^~~
main.cpp:66:21: warning: loop variable '<structured bindings>' creates a copy from type 'const std::pair<int, int>' [-Wrange-loop-construct]
66 | for (const auto [i, j]: muchii)
| ^~~~~~
main.cpp:66:21: note: use reference type to prevent copying
66 | for (const auto [i, j]: muchii)
| ^~~~~~
| &
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !