Problem | rabbitbars |
---|---|
User | YSH2020 |
Submission Time | 2025-02-06 17:16:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rabbitbars.cpp:9:15: error: ‘MAX_N’ was not declared in this scope
9 | int dp_before[MAX_N], dp_cur[MAX_N];
| ^~~~~
rabbitbars.cpp:9:30: error: ‘MAX_N’ was not declared in this scope
9 | int dp_before[MAX_N], dp_cur[MAX_N];
| ^~~~~
rabbitbars.cpp: In function ‘void compute(long long int, long long int, long long int, long long int)’:
rabbitbars.cpp:22:27: error: ‘dp_before’ was not declared in this scope
22 | best = min(best, {dp_before[k - 1] + f(k, mid), k});
| ^~~~~~~~~
rabbitbars.cpp:22:59: error: no matching function for call to ‘min(std::pair<long long int, long long int>&, <brace-enclosed initializer list>)’
22 | best = min(best, {dp_before[k - 1] + f(k, mid), k});
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
fro