Borderou de evaluare (job #1181674)

Utilizator ELHoriaHoria Cretescu ELHoria Data 3 mai 2014 14:39:31
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:181:94: error: default argument given for parameter 1 of ‘WeightedGraph<DataType>::WeightedGraph(const int&, const int&)’ [-fpermissive] WeightedGraph<DataType>::WeightedGraph(const int& vertexNumber_ = 0,const int& edgeCount_ = 0) { ^ user.cpp:155:2: error: after previous specification in ‘WeightedGraph<DataType>::WeightedGraph(const int&, const int&)’ [-fpermissive] WeightedGraph(const int& vertexNumber_ = 0,const int& edgeCount_ = 0); ^ user.cpp:181:94: error: default argument given for parameter 2 of ‘WeightedGraph<DataType>::WeightedGraph(const int&, const int&)’ [-fpermissive] WeightedGraph<DataType>::WeightedGraph(const int& vertexNumber_ = 0,const int& edgeCount_ = 0) { ^ user.cpp:155:2: error: after previous specification in ‘WeightedGraph<DataType>::WeightedGraph(const int&, const int&)’ [-fpermissive] WeightedGraph(const int& vertexNumber_ = 0,const int& edgeCount_ = 0); ^ user.cpp: In function ‘int main()’: user.cpp:277:21: error: call of overloaded ‘WeightedGraph()’ is ambiguous WeightedGraph<int> G; ^ user.cpp:277:21: note: candidates are: user.cpp:169:1: note: WeightedGraph<DataType>::WeightedGraph(const int&, const int&, const std::vector<std::pair<std::pair<int, int>, DataType> >&) [with DataType = int] WeightedGraph<DataType>::WeightedGraph(const int& vertexNumber_ = 0, const int& edgeNumber_ = 0, const vector< pair< pair<int, int>, DataType> >& edges = {}) { ^ user.cpp:181:1: note: WeightedGraph<DataType>::WeightedGraph(const int&, const int&) [with DataType = int] WeightedGraph<DataType>::WeightedGraph(const int& vertexNumber_ = 0,const int& edgeCount_ = 0) { ^ user.cpp: In instantiation of ‘WeightedGraph<DataType> WeightedGraph<DataType>::MinimumSpanningTreeKruskal() [with DataType = int]’: user.cpp:279:57: required from here user.cpp:206:60: error: call of overloaded ‘WeightedGraph(int&, int)’ is ambiguous WeightedGraph<DataType> ret(vertexNumber, vertexNumber - 1); ^ user.cpp:206:60: note: candidates are: user.cpp:169:1: note: WeightedGraph<DataType>::WeightedGraph(const int&, const int&, const std::vector<std::pair<std::pair<int, int>, DataType> >&) [with DataType = int] WeightedGraph<DataType>::WeightedGraph(const int& vertexNumber_ = 0, const int& edgeNumber_ = 0, const vector< pair< pair<int, int>, DataType> >& edges = {}) { ^ user.cpp:181:1: note: WeightedGraph<DataType>::WeightedGraph(const int&, const int&) [with DataType = int] WeightedGraph<DataType>::WeightedGraph(const int& vertexNumber_ = 0,const int& edgeCount_ = 0) { ^

Ceva nu functioneaza?