Mai intai trebuie sa te autentifici.

Borderou de evaluare (job #2793179)

Utilizator PaduraruCristianPaduraru Cristian Daniel PaduraruCristian Data 3 noiembrie 2021 10:50:18
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In constructor 'Graph::Graph(int)': main.cpp:34:9: warning: 'Graph::index' will be initialized after [-Wreorder] 34 | int index; | ^~~~~ main.cpp:30:40: warning: 'std::vector<int> Graph::degrees' [-Wreorder] 30 | vector<int> lowest, level, father, degrees; | ^~~~~~~ main.cpp:44:5: warning: when initialized here [-Wreorder] 44 | Graph(int nr_noduri):n(nr_noduri), la(nr_noduri+1), componente_biconexe(0), componente_tconexe(0), lowest(0), level(0), father(0), onstack(0), index(0), degrees(0){} | ^~~~~ main.cpp: In member function 'void Graph::print_comp_biconexe_udg(std::ostream&)': main.cpp:211:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 211 | for(int i=1;i<componenta.size();++i) | ~^~~~~~~~~~~~~~~~~~ main.cpp: In static member function 'static void Graph::print_dist_BellmanFord(std::ostream&, int, std::vector<Weigthed_Edge>&, int)': main.cpp:372:32: error: 'INT_MAX' was not declared in this scope 372 | vector<int> distance(nn+1, INT_MAX); | ^~~~~~~ main.cpp:7:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 6 | #include <algorithm> +++ |+#include <climits> 7 | using namespace std; main.cpp: In function 'int main()': main.cpp:396:13: warning: unused variable 'x' [-Wunused-variable] 396 | int n,m,x; | ^ Non zero exit status: 1

Ceva nu functioneaza?