Problem | area |
---|---|
User | ArianneLim |
Submission Time | 2024-06-19 10:20:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area.cpp: In function ‘int main()’:
area.cpp:9:30: error: no matching function for call to ‘count(int)’
9 | std::count (++arr[0]*arr[1]);}
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from area.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:4113:5: note: candidate: ‘template<class _IIter, class _Tp> typename std::iterator_traits<_Iterator>::difference_type std::count(_IIter, _IIter, const _Tp&)’
4113 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
| ^~~~~
/usr/include/c++/9/bits/stl_algo.h:4113:5: note: template argument deduction/substitution failed:
area.cpp:9:30: note: candidate expects 3 arguments, 1 provided
9 | std::count (++arr[0]*arr[1]);}
| ^
In file included from /usr/include/c++/9/algorithm:71,