Problem | rabbitbars |
---|---|
User | YSH2020 |
Submission Time | 2025-02-06 17:17:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rabbitbars.cpp:7:13: error: expected ‘,’ or ‘;’ before ‘long’
7 | #define int long long
| ^~~~
rabbitbars.cpp:10:1: note: in expansion of macro ‘int’
10 | 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: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/inc