Problem paint
User highdelao
Submission Time 2023-11-03 00:28:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:19:22: error: request for member ‘begin’ in ‘array2’, which is of non-class type ‘int [n]’
19 | std::sort(array2.begin(), array2.end(), greater<int>());
| ^~~~~
paint.cpp:19:38: error: request for member ‘end’ in ‘array2’, which is of non-class type ‘int [n]’
19 | std::sort(array2.begin(), array2.end(), greater<int>());
| ^~~
paint.cpp:19:45: error: ‘greater’ was not declared in this scope; did you mean ‘std::greater’?
19 | std::sort(array2.begin(), array2.end(), greater<int>());
| ^~~~~~~
| std::greater
In file included from /usr/include/c++/9/string:48,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,