Borderou de evaluare (job #3334249)
| Utilizator | Data | 17 ianuarie 2026 09:01:25 | |
|---|---|---|---|
| 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 'int main()':
main.cpp:17:26: error: 'INT_MAX' was not declared in this scope
17 | vector<int> dist(n+1,INT_MAX);
| ^~~~~~~
main.cpp:9:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
8 | #include <fstream>
+++ |+#include <climits>
9 | using namespace std;
main.cpp:37:25: warning: loop variable '<structured bindings>' creates a copy from type 'const std::pair<int, int>' [-Wrange-loop-construct]
37 | for (const auto [nod,pondere] : adj[p.second]) {
| ^~~~~~~~~~~~~
main.cpp:37:25: note: use reference type to prevent copying
37 | for (const auto [nod,pondere] : adj[p.second]) {
| ^~~~~~~~~~~~~
| &
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
