Borderou de evaluare (job #2808108)
Utilizator | Data | 24 noiembrie 2021 16:38:31 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:367:51: error: 'INT_MAX' was not declared in this scope
367 | vector<int> m_bellmanDist = vector<int>(nMax, 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 |
main.cpp: In static member function 'static bool Graf::potiConstruiGraf(std::vector<int>)':
main.cpp:237:26: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
237 | if (grade[0] > grade.size() - 1) return false;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !