Problem rabbitbars
User YSH2020
Submission Time 2025-02-06 17:16:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rabbitbars.cpp:9:7: error: ‘MAX_N’ does not name a type
9 | const MAX_N = 2e5// implement this
| ^~~~~
rabbitbars.cpp: In function ‘void compute(long long int, long long int, long long int, long long int)’:
rabbitbars.cpp:23:27: error: ‘dp_before’ was not declared in this scope
23 | best = min(best, {dp_before[k - 1] + f(k, mid), k});
| ^~~~~~~~~
rabbitbars.cpp:23:59: error: no matching function for call to ‘min(std::pair<long long int, long long int>&, <brace-enclosed initializer list>)’
23 | best = min(best, {dp_before[k - 1] + f(k, mid), k});
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from rabbitbars.cpp:1:
/usr/include/c++/9/bits/stl