Borderou de evaluare (job #2113029)

Utilizator Mihai_PredaPreda Mihai Dragos Mihai_Preda Data 24 ianuarie 2018 10:39:56
Problema Cuplaj maxim in graf bipartit Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘void bipart::GetCuplaj(std::vector<std::pair<int, int> >&)’: user.cpp:30:59: error: no matching function for call to ‘bipart::cupleaza(int&, std::vector<bool>&, std::vector<int>&, std::vector<int>&)’ if(to[i] == 0 && cupleaza(i, viz, to, from)) ^ user.cpp:30:59: note: candidate is: user.cpp:38:10: note: bool bipart::cupleaza(int, std::vector<int>&) bool cupleaza(int nod, vector<int> &vis) ^ user.cpp:38:10: note: candidate expects 2 arguments, 4 provided user.cpp: In member function ‘bool bipart::cupleaza(int, std::vector<int>&)’: user.cpp:40:12: error: ‘viz’ was not declared in this scope if(viz[nod]) ^ user.cpp:42:9: error: ‘viz’ was not declared in this scope viz[nod] = true; ^ user.cpp:44:16: error: ‘from’ was not declared in this scope if(from[v] == 0) ^ user.cpp:46:16: error: ‘to’ was not declared in this scope to[nod] = v; ^ user.cpp:51:25: error: ‘from’ was not declared in this scope if(cupleaza(from[v], viz, to, from)) ^ user.cpp:51:39: error: ‘to’ was not declared in this scope if(cupleaza(from[v], viz, to, from)) ^

Ceva nu functioneaza?