Borderou de evaluare (job #3350769)
| Utilizator | Data | 12 aprilie 2026 19:39:17 | |
|---|---|---|---|
| Problema | Algoritmul lui Dijkstra | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dijk(int)':
main.cpp:108:17: error: 'INT_MAX' was not declared in this scope
108 | dist[i]=INT_MAX;
| ^~~~~~~
main.cpp:10:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
9 | #include <vector>
+++ |+#include <climits>
10 |
main.cpp:117:24: warning: loop variable '<structured bindings>' creates a copy from type 'const std::pair<int, int>' [-Wrange-loop-construct]
117 | for(const auto [vec,w]:g[nod]) {
| ^~~~~~~
main.cpp:117:24: note: use reference type to prevent copying
117 | for(const auto [vec,w]:g[nod]) {
| ^~~~~~~
| &
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
