Problem visitingsingapore
User litcoderr
Submission Time 2024-08-25 20:16:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

visitingsingapore.cpp: In function ‘int main()’:
visitingsingapore.cpp:51:26: error: ‘max_element’ was not declared in this scope
51 | int max_happiness = *max_element(dp[n].begin(), dp[n].end());
| ^~~~~~~~~~~