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

Compile Error

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