festival.cpp: In function 'void solvesub1(int&, std::vector<int>&, std::vector<int>&)':
festival.cpp:15:20: error: expected ';' before 'result'
15 | A-=vec[i].first
| ^
| ;
16 | result.push_back(vec[i].second);
| ~~~~~~
festival.cpp: In function 'std::vector<int> max_coupons(int, std::vector<int>, std::vector<int>)':
festival.cpp:35:7: error: 'i' was not declared in this scope
35 | for(i=0;i<n;i++){
| ^
festival.cpp:40:26: error: too few arguments to function 'void solvesub1(int&, std::vector<int>&, std::vector<int>&)'
40 | if(checksub1) solvesub1();
| ~~~~~~~~~^~
festival.cpp:7:6: note: declared here
7 | void solvesub1(int &A,vector<int> &P, vector<int> &T){
| ^~~~~~~~~
festival.cpp:41:31: error: too few arguments to function 'void solvesub2(int&, std::vector<int>&, std::vector<int>&)'
41 | else if(checksub2) solvesub2();
| ~~~~~~~~~^~
festival.cpp:21:6: note: declared here
21 | void solvesub2(int &A,vector<int> &P, vector<int> &T){
| ^~~~~~~~~
festival.cpp:42:17: error: too few arguments to function 'void solvesub3(int&, std::vector<int>&, std::vector<int>&)'
42 | else solvesub3();
| ~~~~~~~~~^~
festival.cpp:25:6: note: declared here
25 | void solvesub3(int &A,vector<int> &P, vector<int> &T){
| ^~~~~~~~~