Problem area_noi
User G
Submission Time 2024-02-05 19:23:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

area_noi.cpp: In function ‘int main()’:
area_noi.cpp:13:20: error: no matching function for call to ‘size(int [n])’
13 | for(int i;i<size(h);i++){
| ^
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from area_noi.cpp:1:
/usr/include/c++/9/bits/range_access.h:242:5: note: candidate: ‘template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)’
242 | size(const _Container& __cont) noexcept(noexcept(__cont.size()))
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: template argument deduction/substitution failed:
area_noi.cpp:13:20: note: variable-si