Problem buyingcandy
User Henries
Submission Time 2024-10-27 20:28:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

buyingcandy.cpp: In function ‘void solve(std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >, std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >)’:
buyingcandy.cpp:38:11: error: a function-definition is not allowed here before ‘{’ token
38 | int main(){
| ^
buyingcandy.cpp:55:1: error: expected ‘}’ at end of input
55 | }
| ^
buyingcandy.cpp:3:199: note: to match this ‘{’
3 | void solve(priority_queue<long long,vector<long long>, greater<long long>> candy,priority_queue<pair<long long,long long>, vector<pair<long long,long long>>, greater<pair<long long,long long>>> pq){
|