festival.cpp:96:79: error: stray '#' in program
96 | ", "grade": [0.0, 7.0, 0.0, 15.0, 0.0, 0.0, 0.0], "tokens": 46284}, {"code": "#include <bits/stdc++.h>
| ^
festival.cpp:186:79: error: stray '#' in program
186 | ", "grade": [0.0, 7.0, 0.0, 15.0, 0.0, 0.0, 0.0], "tokens": 39666}, {"code": "#include "festival.h"
| ^
festival.cpp:96:1: error: expected unqualified-id before user-defined string literal
96 | ", "grade": [0.0, 7.0, 0.0, 15.0, 0.0, 0.0, 0.0], "tokens": 46284}, {"code": "#include <bits/stdc++.h>
| ^~~~~~~~~
festival.cpp:99:8: error: redefinition of 'struct Coupon'
99 | struct Coupon {
| ^~~~~~
festival.cpp:5:8: note: previous definition of 'struct Coupon'
5 | struct Coupon {
| ^~~~~~
festival.cpp:111:13: error: redefinition of 'std::vector<int> max_coupons(int, std::vector<int>, std::vector<int>)'
111 | vector<int> max_coupons(int A, vector<int> P, vector<int> T) {
| ^~~~~~~~~~~
festival.cpp:11:13: note: 'std::vector<int> max_coupons(int, std::vector<int>, std::vector<int>)' previously defined here
11 | vector<int> max_coupons(int A, vector<int> P, vector<int> T) {
| ^~~~~~~~~~~
festival.cpp: In lambda function:
festival.cpp:120:15: error: 'const struct Coupon' has no member named 't'
120 | if (a.t == 1 && b.t == 1) return a.idx < b.idx; // tie‑break
| ^
festival.cpp:120:27: error: 'const struct Coupon' has no member named 't'
120 | if (a.t == 1 && b.t == 1) return a.idx < b.idx; // tie‑break
| ^
festival.cpp:121:15: error: 'const struct Coupon' has no member named 't'
121 | if (a.t == 1) return true; // a has larger ratio
| ^
festival.cpp:122:15: error: 'const struct Coupon' has no member named 't'
122 | if (b.t == 1) return false;
| ^
festival.cpp:124:29: error: 'const struct Coupon' has no member named 'p'
124 | long long left = a.p * a.t * (b.t - 1); // <= 12·10⁹, fits in 64 bit
| ^
festival.cpp:124:35: error: 'const struct Coupon' has no member named 't'
124 | long long left = a.p * a.t * (b.t - 1); // <= 12·10⁹, fits in 64 bit
| ^
festival.cpp:124:42: error: 'const struct Coupon' has no member named 't'
124 | long long left = a.p * a.t * (b.t - 1); // <= 12·10⁹, fits in 64 bit
| ^
festival.cpp:125:29: error: 'const struct Coupon' has no member named 'p'
125 | long long right = b.p * b.t * (a.t - 1);
| ^
festival.cpp:125:35: error: 'const struct Coupon' has no member named 't'
125 | long long right = b.p * b.t * (a.t - 1);
| ^
festival.cpp:125:42: error: 'const struct Coupon' has no member named 't'
125 | long long right = b.p * b.t * (a.t - 1);
| ^
festival.cpp: In function 'std::vector<int> max_coupons(int, std::vector<int>, std::vector<int>)':
festival.cpp:139:34: error: '__gnu_cxx::__alloc_traits<std::allocator<Coupon>, Coupon>::value_type' {aka 'struct Coupon'} has no member named 'p'
139 | long long price = cur[i].p;
| ^
festival.cpp:140:27: error: '__gnu_cxx::__alloc_traits<std::allocator<Coupon>, Coupon>::value_type' {aka 'struct Coupon'} has no member named 't'
140 | int mult = cur[i].t;
| ^
festival.cpp: At global scope:
festival.cpp:186:1: error: expected unqualified-id before user-defined string literal
186 | ", "grade": [0.0, 7.0, 0.0, 15.0, 0.0, 0.0, 0.0], "tokens": 39666}, {"code": "#include "festival.h"
| ^~~~~~~~~
festival.cpp:193:8: error: redefinition of 'struct Coupon'
193 | struct Coupon {
| ^~~~~~
festival.cpp:5:8: note: previous definition of 'struct Coupon'
5 | struct Coupon {
| ^~~~~~
festival.cpp:208:13: error: redefinition of 'std::vector<int> max_coupons(int, std::vector<int>, std::vector<int>)'
208 | vector<int> max_coupons(int A, vector<int> P, vector<int> T) {
| ^~~~~~~~~~~
festival.cpp:11:13: note: 'std::vector<int> max_coupons(int, std::vector<int>, std::vector<int>)' previously defined here
11 | vector<int> max_coupons(int A, vector<int> P, vector<int> T) {
| ^~~~~~~~~~~
festival.cpp: In function 'std::vector<int> max_coupons(int, std::vector<int>, std::vector<int>)':
festival.cpp:218:15: error: 'struct Coupon' has no member named 'inf'
218 | c.inf = true;
| ^~~
festival.cpp:219:15: error: 'struct Coupon' has no member named 'num'
219 | c.num = 0;
| ^~~
festival.cpp:220:15: error: 'struct Coupon' has no member named 'den'
220 | c.den = 1;
| ^~~
festival.cpp:222:15: error: 'struct Coupon' has no member named 'inf'
222 | c.inf = false;
| ^~~
festival.cpp:223:15: error: 'struct Coupon' has no member named 'num'
223 | c.num = (i128)c.P * (i128)c.T; // numerator of v
| ^~~
festival.cpp:224:15: error: 'struct Coupon' has no member named 'den'
224 | c.den = c.T - 1;
| ^~~
festival.cpp: In lambda function:
festival.cpp:231:15: error: 'const struct Coupon' has no member named 'inf'
231 | if (a.inf != b.inf) return a.inf > b.inf; // inf (T==1) is larger
| ^~~
festival.cpp:231:24: error: 'const struct Coupon' has no member named 'inf'
231 | if (a.inf != b.inf) return a.inf > b.inf; // inf (T==1) is larger
| ^~~
festival.cpp:231:38: error: 'const struct Coupon' has no member named 'inf'
231 | if (a.inf != b.inf) return a.inf > b.inf; // inf (T==1) is larger
| ^~~
festival.cpp:231:46: error: 'const struct Coupon' has no member named 'inf'
231 | if (a.inf != b.inf) return a.inf > b.inf; // inf (T==1) is larger
| ^~~
festival.cpp:234:23: error: 'const struct Coupon' has no member named 'num'
234 | i128 left = a.num * (i128)b.den;
| ^~~
festival.cpp:234:37: error: 'const struct Coupon' has no member named 'den'
234 | i128 left = a.num * (i128)b.den;
| ^~~
festival.cpp:235:24: error: 'const struct Coupon' has no member named 'num'
235 | i128 right = b.num * (i128)a.den;
| ^~~
festival.cpp:235:38: error: 'const struct Coupon' has no member named 'den'
235 | i128 right = b.num * (i128)a.den;
| ^~~