Borderou de evaluare (job #2806835)
Utilizator | Data | 23 noiembrie 2021 01:29:02 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void Graph::Bellman_Ford(int)':
main.cpp:341:21: error: 'INT_MAX' was not declared in this scope
341 | const int inf = INT_MAX;
| ^~~~~~~
main.cpp:9:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
8 | #include <algorithm>
+++ |+#include <climits>
9 | #include <queue>
main.cpp:357:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
357 | for(int i=0; i<weighted_edges[v1].size(); i++)
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !