Problem | candymountain_ex |
---|---|
User | laurenpak |
Submission Time | 2025-01-20 16:05:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
candymountain_ex.cpp: In function ‘int f(int)’:
candymountain_ex.cpp:8:40: error: ‘K’ was not declared in this scope
8 | for(int j = x - 1; j >= max(0, x - K); --j){
| ^
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:16:17: error: ‘K’ was not declared in this scope
16 | cin >> n >> K;
| ^
candymountain_ex.cpp:19:16: error: ‘peb’ was not declared in this scope
19 | cin >> peb[i];
| ^~~