Problem candymountain_ex
User laurenpak
Submission Time 2025-01-20 16:06:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp: In function ‘int f(int)’:
candymountain_ex.cpp:9:46: error: expected ‘;’ before ‘}’ token
9 | dp[x] = max(dp[x], min(f(j), arr[x]))
| ^
| ;
10 | }
| ~
candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:19:16: error: ‘peb’ was not declared in this scope
19 | cin >> peb[i];
| ^~~