Problem vainish
User hwy
Submission Time 2023-06-30 23:06:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

vainish.cpp: In function ‘ll dp(std::vector<long long int>, ll)’:
vainish.cpp:12:41: error: ‘solve’ was not declared in this scope
12 | ll result = v[idx] * memo[v[idx]] + solve(v, idx+2);
| ^~~~~
vainish.cpp: In function ‘int main()’:
vainish.cpp:31:17: error: ‘solve’ was not declared in this scope
31 | ll result = solve(v, 0);
| ^~~~~