Maksimali suma

Taškai: 0

Compile: FAIL

max.cpp: In function ‘int main()’: max.cpp:34:29: error: no matching function for call to ‘count(int [n], int*)’ if (count(a, a+n)<maks){break}; ^ In file included from /usr/include/c++/5/algorithm:62:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64, from max.cpp:1: /usr/include/c++/5/bits/stl_algo.h:3959:5: note: candidate: template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&) count(_InputIterator __first, _InputIterator __last, const _Tp& __value) ^ /usr/include/c++/5/bits/stl_algo.h:3959:5: note: template argument deduction/substitution failed: max.cpp:34:29: note: candidate expects 3 arguments, 2 provided if (count(a, a+n)<maks){break}; ^ max.cpp:34:42: error: expected ‘;’ before ‘}’ token if (count(a, a+n)<maks){break}; ^

nr.resulttimemessage