Borderou de evaluare (job #3190779)

Utilizator raducostacheRadu Costache raducostache Data 8 ianuarie 2024 01:51:01
Problema Ghizi Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In constructor 'Graph::Graph(int)': main.cpp:17:19: warning: 'Graph::viz' will be initialized after [-Wreorder] 17 | vector <bool> viz; | ^~~ main.cpp:16:18: warning: 'std::vector<int> Graph::parent' [-Wreorder] 16 | vector <int> parent; | ^~~~~~ main.cpp:19:5: warning: when initialized here [-Wreorder] 19 | Graph(int n) : n(n), adj(n), viz(n), parent(n), flux(n), capacity(n) { | ^~~~~ main.cpp:16:18: warning: 'Graph::parent' will be initialized after [-Wreorder] 16 | vector <int> parent; | ^~~~~~ main.cpp:15:39: warning: 'std::vector<std::unordered_map<int, int> > Graph::flux' [-Wreorder] 15 | vector <unordered_map <int, int>> flux, capacity; | ^~~~ main.cpp:19:5: warning: when initialized here [-Wreorder] 19 | Graph(int n) : n(n), adj(n), viz(n), parent(n), flux(n), capacity(n) { | ^~~~~ main.cpp: In member function 'int Graph::Flux(int, int)': main.cpp:56:48: error: 'INT_MAX' was not declared in this scope 56 | int node = dst, currFlux = INT_MAX; | ^~~~~~~ main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 4 | #include <queue> +++ |+#include <climits> 5 | #include <vector> main.cpp: In function 'int main()': main.cpp:114:11: warning: unused variable 'fl' [-Wunused-variable] 114 | auto fl = G.Flux(0, 101); | ^~ Non zero exit status: 1

Ceva nu functioneaza?