Borderou de evaluare (job #2597500)

Utilizator ZenoTeodor Anitoaei Zeno Data 11 aprilie 2020 10:48:19
Problema Blat Status done
Runda Fmi No Stress 9 Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:51:38: error: no matching function for call to 'sort(int [200], int*, <unresolved overloaded function type>)' sort(sum_cols, sum_cols + m, reverse); ^ In file included from /usr/include/c++/6/algorithm:62:0, from main.cpp:6: /usr/include/c++/6/bits/stl_algo.h:4697:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter) sort(_RandomAccessIterator __first, _RandomAccessIterator __last) ^~~~ /usr/include/c++/6/bits/stl_algo.h:4697:5: note: template argument deduction/substitution failed: main.cpp:51:38: note: candidate expects 2 arguments, 3 provided sort(sum_cols, sum_cols + m, reverse); ^ In file included from /usr/include/c++/6/algorithm:62:0, from main.cpp:6: /usr/include/c++/6/bits/stl_algo.h:4727:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare) sort(_RandomAccessIterator __first, _RandomAccessIterator __last, ^~~~ /usr/include/c++/6/bits/stl_algo.h:4727:5: note: template argument deduction/substitution failed: main.cpp:51:38: note: couldn't deduce template parameter '_Compare' sort(sum_cols, sum_cols + m, reverse); ^ main.cpp:73:33: error: no matching function for call to 'sort(int [200], int*, <unresolved overloaded function type>)' sort(pb[i], pb[i] + m, reverse); ^ In file included from /usr/include/c++/6/algorithm:62:0, from main.cpp:6: /usr/include/c++/6/bits/stl_algo.h:4697:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter) sort(_RandomAccessIterator __first, _RandomAccessIterator __last) ^~~~ /usr/include/c++/6/bits/stl_algo.h:4697:5: note: template argument deduction/substitution failed: main.cpp:73:33: note: candidate expects 2 arguments, 3 provided sort(pb[i], pb[i] + m, reverse); ^ In file included from /usr/include/c++/6/algorithm:62:0, from main.cpp:6: /usr/include/c++/6/bits/stl_algo.h:4727:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare) sort(_RandomAccessIterator __first, _RandomAccessIterator __last, ^~~~ /usr/include/c++/6/bits/stl_algo.h:4727:5: note: template argument deduction/substitution failed: main.cpp:73:33: note: couldn't deduce template parameter '_Compare' sort(pb[i], pb[i] + m, reverse); ^ Non zero exit status: 1

Ceva nu functioneaza?