Borderou de evaluare (job #2806201)
Utilizator | Data | 22 noiembrie 2021 14:14:13 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:33:45: error: 'INT_MAX' was not declared in this scope
33 | void adaug_muchie(int v, int w, int cst=INT_MAX) {
| ^~~~~~~
main.cpp:6:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
5 | #include <vector>
+++ |+#include <climits>
6 |
main.cpp: In member function 'int* graf::bellman_ford()':
main.cpp:209:23: error: 'INT_MAX' was not declared in this scope
209 | distante[i] = INT_MAX;
| ^~~~~~~
main.cpp:209:23: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !