Borderou de evaluare (job #2064181)

Utilizator aaether14Dinescu Stefan Cristian aaether14 Data 11 noiembrie 2017 21:55:41
Problema Cele mai apropiate puncte din plan Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘double solve(pointArr&, int, int)’: user.cpp:35:16: error: no matching function for call to ‘merge()’ std::merge() ^ user.cpp:35:16: note: candidates are: In file included from /usr/include/c++/4.8/algorithm:62:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:5540:5: note: template<class _IIter1, class _IIter2, class _OIter> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter) merge(_InputIterator1 __first1, _InputIterator1 __last1, ^ /usr/include/c++/4.8/bits/stl_algo.h:5540:5: note: template argument deduction/substitution failed: user.cpp:35:16: note: candidate expects 5 arguments, 0 provided std::merge() ^ In file included from /usr/include/c++/4.8/algorithm:62:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algo.h:5604:5: note: template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare) merge(_InputIterator1 __first1, _InputIterator1 __last1, ^ /usr/include/c++/4.8/bits/stl_algo.h:5604:5: note: template argument deduction/substitution failed: user.cpp:35:16: note: candidate expects 6 arguments, 0 provided std::merge() ^ user.cpp:36:5: error: expected ‘;’ before ‘for’ for(auto it = 0; it < candidates.size(); ++it) { ^ user.cpp:36:22: error: ‘it’ was not declared in this scope for(auto it = 0; it < candidates.size(); ++it) { ^ user.cpp:36:50: error: expected ‘;’ before ‘)’ token for(auto it = 0; it < candidates.size(); ++it) { ^ user.cpp:60:1: error: expected ‘}’ at end of input } ^ user.cpp:60:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?