Borderou de evaluare (job #2908279)
Utilizator | Data | 2 iunie 2022 17:31:16 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool bellmanford(int, int, int, std::vector<int>&)':
main.cpp:12:32: error: 'INT_MAX' was not declared in this scope
12 | dist.resize(numberOfNodes, INT_MAX);
| ^~~~~~~
main.cpp:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <vector>
+++ |+#include <climits>
3 | using namespace std;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !