Problem shamelessad3
User Joashhh
Submission Time 2024-12-10 09:58:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shamelessad3.cpp: In function ‘int main()’:
shamelessad3.cpp:44:28: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive]
44 | int area = (nextsmall[i] - prevsmall[i] - 1)*(arr[i]);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~