feast.cpp:8:14: error: 'll' was not declared in this scope
8 | typedef pair<ll, ll> pii;
| ^~
feast.cpp:8:18: error: 'll' was not declared in this scope
8 | typedef pair<ll, ll> pii;
| ^~
feast.cpp:8:20: error: template argument 1 is invalid
8 | typedef pair<ll, ll> pii;
| ^
feast.cpp:8:20: error: template argument 2 is invalid
feast.cpp: In function 'pii solve(ll)':
feast.cpp:19:18: error: cannot convert '<brace-enclosed initializer list>' to 'pii' {aka 'int'} in assignment
19 | dp[0][0] = {0, 0};
| ^
feast.cpp:20:25: error: cannot convert '<brace-enclosed initializer list>' to 'pii' {aka 'int'} in assignment
20 | dp[0][1] = {a[0] - l, 1};
| ^
feast.cpp:11:11: error: request for member 'first' in 'dp[(i - 1)][0]', which is of non-class type 'pii' {aka 'int'}
11 | #define f first
| ^~~~~
feast.cpp:24:39: note: in expansion of macro 'f'
24 | dp[i][1] = max(make_pair(dp[i-1][0].f + a[i] - l, dp[i-1][0].s + 1), make_pair(dp[i-1][1].f + a[i], dp[i-1][1].s));
| ^
feast.cpp:10:11: error: request for member 'second' in 'dp[(i - 1)][0]', which is of non-class type 'pii' {aka 'int'}
10 | #define s second
| ^~~~~~
feast.cpp:24:64: note: in expansion of macro 's'
24 | dp[i][1] = max(make_pair(dp[i-1][0].f + a[i] - l, dp[i-1][0].s + 1), make_pair(dp[i-1][1].f + a[i], dp[i-1][1].s));
| ^
feast.cpp:11:11: error: request for member 'first' in 'dp[(i - 1)][1]', which is of non-class type 'pii' {aka 'int'}
11 | #define f first
| ^~~~~
feast.cpp:24:93: note: in expansion of macro 'f'
24 | dp[i][1] = max(make_pair(dp[i-1][0].f + a[i] - l, dp[i-1][0].s + 1), make_pair(dp[i-1][1].f + a[i], dp[i-1][1].s));
| ^
feast.cpp:10:11: error: request for member 'second' in 'dp[(i - 1)][1]', which is of non-class type 'pii' {aka 'int'}
10 | #define s second
| ^~~~~~
feast.cpp:24:114: note: in expansion of macro 's'
24 | dp[i][1] = max(make_pair(dp[i-1][0].f + a[i] - l, dp[i-1][0].s + 1), make_pair(dp[i-1][1].f + a[i], dp[i-1][1].s));
| ^
feast.cpp: In function 'int main()':
feast.cpp:10:11: error: request for member 'second' in 'res', which is of non-class type 'pii' {aka 'int'}
10 | #define s second
| ^~~~~~
feast.cpp:44:11: note: in expansion of macro 's'
44 | if (res.s >= k) lo = m;
| ^
feast.cpp:11:11: error: request for member 'first' in 'solve(lo)', which is of non-class type 'pii' {aka 'int'}
11 | #define f first
| ^~~~~
feast.cpp:48:20: note: in expansion of macro 'f'
48 | cout << solve(lo).f + k * lo << endl;
| ^