Borderou de evaluare (job #2805900)

Utilizator RoberttoPopescu Paullo Robertto Karloss Robertto Data 22 noiembrie 2021 08:41:20
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 Graf::dijkstra()': main.cpp:566:21: error: 'INT_MAX' was not declared in this scope 566 | const int inf = INT_MAX; | ^~~~~~~ main.cpp:10:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 9 | #include <algorithm> +++ |+#include <climits> 10 | main.cpp:583:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 583 | for (int i = 1; i < adiacentaCost[nod].size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graf::bellmanFord()': main.cpp:605:21: error: 'INT_MAX' was not declared in this scope 605 | const int inf = INT_MAX; | ^~~~~~~ main.cpp:605:21: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? main.cpp:620:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 620 | for (int i = 1; i < adiacentaCost[nod].size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?