Borderou de evaluare (job #2249510)

Utilizator Andrei1998Andrei Constantinescu Andrei1998 Data 29 septembrie 2018 23:37:45
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:237:8: error: redefinition of ‘struct Hasher<B, MOD>’ struct Hasher { ^~~~~~ user.cpp:123:8: error: previous definition of ‘struct Hasher<B, MOD>’ struct Hasher { ^~~~~~ user.cpp:286:33: error: ‘std::vector<int> Hasher<B, MOD>::pows’ is not a static data member of ‘struct Hasher<B, MOD>’ vector <int> Hasher <B, MOD> :: pows = {1}; ^~~~ user.cpp:286:33: error: template definition of non-template ‘std::vector<int> Hasher<B, MOD>::pows’ user.cpp: In function ‘int main()’: user.cpp:434:5: error: redefinition of ‘int main()’ int main() ^~~~ user.cpp:107:5: note: ‘int main()’ previously defined here int main() { ^~~~ user.cpp: At global scope: user.cpp:575:11: error: redefinition of ‘const int NMAX’ const int NMAX = 1000 + 5; ^~~~ user.cpp:429:11: note: ‘const int NMAX’ previously defined here const int NMAX = 200 + 5; ^~~~ user.cpp:576:11: error: redefinition of ‘const int MMAX’ const int MMAX = 5000 + 5; ^~~~ user.cpp:430:11: note: ‘const int MMAX’ previously defined here const int MMAX = 4000 + 5; ^~~~ user.cpp:577:22: error: conflicting declaration ‘MaxFLow<205, 4005> f’ MaxFLow <NMAX, MMAX> f; ^ user.cpp:432:29: note: previous declaration as ‘MaxFlowMinCost<205, 4005> f’ MaxFlowMinCost <NMAX, MMAX> f; ^ user.cpp: In function ‘int main()’: user.cpp:579:5: error: redefinition of ‘int main()’ int main() ^~~~ user.cpp:107:5: note: ‘int main()’ previously defined here int main() { ^~~~ user.cpp:591:26: error: no matching function for call to ‘MaxFlowMinCost<205, 4005>::addEdge(int&, int&, int&)’ f.addEdge(a, b, c); ^ user.cpp:325:10: note: candidate: void MaxFlowMinCost<NMAX, MMAX>::addEdge(int, int, int, int) [with int NMAX = 205; int MMAX = 4005] void addEdge(int from, int to, int cap, int cost) { ^~~~~~~ user.cpp:325:10: note: candidate expects 4 arguments, 3 provided

Ceva nu functioneaza?