festival.cpp:101:79: error: stray '#' in program
101 | ", "grade": [0.0, 7.0, 0.0, 15.0, 0.0, 0.0, 0.0], "tokens": 40181}, {"code": "#include <bits/stdc++.h>
| ^
festival.cpp:101:1: error: expected unqualified-id before user-defined string literal
101 | ", "grade": [0.0, 7.0, 0.0, 15.0, 0.0, 0.0, 0.0], "tokens": 40181}, {"code": "#include <bits/stdc++.h>
| ^~~~~~~~~
festival.cpp:104:8: error: redefinition of 'struct Coupon'
104 | struct Coupon {
| ^~~~~~
festival.cpp:5:8: note: previous definition of 'struct Coupon'
5 | struct Coupon {
| ^~~~~~
festival.cpp: In function 'bool cmpK(const Coupon&, const Coupon&)':
festival.cpp:116:34: error: 'const struct Coupon' has no member named 'p'
116 | __int128 left = (__int128)a.p * a.t * (b.t - 1);
| ^
festival.cpp:116:40: error: 'const struct Coupon' has no member named 't'
116 | __int128 left = (__int128)a.p * a.t * (b.t - 1);
| ^
festival.cpp:116:47: error: 'const struct Coupon' has no member named 't'
116 | __int128 left = (__int128)a.p * a.t * (b.t - 1);
| ^
festival.cpp:117:34: error: 'const struct Coupon' has no member named 'p'
117 | __int128 right = (__int128)b.p * b.t * (a.t - 1);
| ^
festival.cpp:117:40: error: 'const struct Coupon' has no member named 't'
117 | __int128 right = (__int128)b.p * b.t * (a.t - 1);
| ^
festival.cpp:117:47: error: 'const struct Coupon' has no member named 't'
117 | __int128 right = (__int128)b.p * b.t * (a.t - 1);
| ^
festival.cpp:120:11: error: 'const struct Coupon' has no member named 't'
120 | if (a.t != b.t) return a.t > b.t; // larger multiplier first
| ^
festival.cpp:120:18: error: 'const struct Coupon' has no member named 't'
120 | if (a.t != b.t) return a.t > b.t; // larger multiplier first
| ^
festival.cpp:120:30: error: 'const struct Coupon' has no member named 't'
120 | if (a.t != b.t) return a.t > b.t; // larger multiplier first
| ^
festival.cpp:120:36: error: 'const struct Coupon' has no member named 't'
120 | if (a.t != b.t) return a.t > b.t; // larger multiplier first
| ^
festival.cpp:121:14: error: 'const struct Coupon' has no member named 'p'
121 | return a.p > b.p; // larger price first
| ^
festival.cpp:121:20: error: 'const struct Coupon' has no member named 'p'
121 | return a.p > b.p; // larger price first
| ^
festival.cpp: At global scope:
festival.cpp:126:13: error: redefinition of 'std::vector<int> max_coupons(int, std::vector<int>, std::vector<int>)'
126 | vector<int> max_coupons(int A, vector<int> P, vector<int> T) {
| ^~~~~~~~~~~
festival.cpp:34:13: note: 'std::vector<int> max_coupons(int, std::vector<int>, std::vector<int>)' previously defined here
34 | vector<int> max_coupons(int A, vector<int> P, vector<int> T) {
| ^~~~~~~~~~~
festival.cpp: In lambda function:
festival.cpp:142:23: error: 'const struct Coupon' has no member named 'p'
142 | return a.p < b.p; // cheapest first
| ^
festival.cpp:142:29: error: 'const struct Coupon' has no member named 'p'
142 | return a.p < b.p; // cheapest first
| ^
festival.cpp: In function 'std::vector<int> max_coupons(int, std::vector<int>, std::vector<int>)':
festival.cpp:169:65: error: 'const struct Coupon' has no member named 'p'
169 | if (dp[i - 1][k - 1] != -1 && dp[i - 1][k - 1] >= c.p) {
| ^
festival.cpp:170:54: error: 'const struct Coupon' has no member named 'p'
170 | __int128 base = dp[i - 1][k - 1] - c.p;
| ^
festival.cpp:172:36: error: 'const struct Coupon' has no member named 't'
172 | if (base > INF / c.t) after = INF;
| ^
festival.cpp:173:49: error: 'const struct Coupon' has no member named 't'
173 | else after = base * (__int128)c.t;
| ^