Problem youtubealgo
User shoryu386
Submission Time 2023-12-22 16:31:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

youtubealgo.cpp: In function ‘long long int recur(long long int)’:
youtubealgo.cpp:22:4: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
22 | ans = max(ans, recur(y+1) + *ms.begin());
| ^~~
| abs
youtubealgo.cpp:25:17: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
25 | return dp[x] = ans;
| ^~~
| abs