Problem brick
User VNHbest
Submission Time 2024-01-27 08:44:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:14:8: error: ‘i’ was not declared in this scope
14 | dp[i] = max(dp[i + 1], arr[i]);
| ^