festival.cpp: In function 'std::vector<int> max_coupons(int, std::vector<int>, std::vector<int>)':
festival.cpp:4:7: error: 'll' was not declared in this scope
4 | ll n = P.size();
| ^~
festival.cpp:5:9: error: expected ';' before 'c'
5 | ll c = A;
| ^~
| ;
festival.cpp:7:7: error: 'vector' was not declared in this scope
7 | vector<ll>v = P, h = T;
| ^~~~~~
festival.cpp:7:7: note: suggested alternatives:
In file included from /usr/include/c++/13/vector:66,
from festival.h:1,
from festival.cpp:1:
/usr/include/c++/13/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/13/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
festival.cpp:7:17: error: 'v' was not declared in this scope
7 | vector<ll>v = P, h = T;
| ^
festival.cpp:7:24: error: 'h' was not declared in this scope
7 | vector<ll>v = P, h = T;
| ^
festival.cpp:8:14: error: 'pair' was not declared in this scope; did you mean 'std::pair'?
8 | vector<pair<ll,ll>>vp;
| ^~~~
| std::pair
In file included from /usr/include/c++/13/bits/stl_algobase.h:64,
from /usr/include/c++/13/vector:62:
/usr/include/c++/13/bits/stl_pair.h:187:12: note: 'std::pair' declared here
187 | struct pair
| ^~~~
festival.cpp:8:26: error: 'vp' was not declared in this scope
8 | vector<pair<ll,ll>>vp;
| ^~
festival.cpp:9:24: error: 'n' was not declared in this scope
9 | for (int i=0 ; i<n ; i++)
| ^
festival.cpp:13:7: error: 'sort' was not declared in this scope; did you mean 'short'?
13 | sort(vp.begin(), vp.end());
| ^~~~
| short
festival.cpp:14:17: error: 'ans' was not declared in this scope
14 | vector<ll>ans;
| ^~~
festival.cpp:17:15: error: 'c' was not declared in this scope
17 | if (c>=i.first)
| ^