Borderou de evaluare (job #2892836)
Utilizator | Data | 23 aprilie 2022 18:46:29 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:13:34: error: 'INT_MAX' was not declared in this scope
13 | std::vector<int>distances(50005, INT_MAX);
| ^~~~~~~
main.cpp:7:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
6 | #include <map>
+++ |+#include <climits>
7 | std::ifstream f("bellmanford.in");
main.cpp: In function 'void bellman_ford(int)':
main.cpp:20:29: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
20 | for (size_t node = 1; node < nodes; node++)
| ~~~~~^~~~~~~
main.cpp:32:29: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
32 | for (size_t node = 1; node < nodes; node++)
| ~~~~~^~~~~~~
main.cpp: In function 'int main()':
main.cpp:68:24: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
68 | for (size_t i = 2; i <= nodes; i++)
| ~~^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !