Problem buyingcandy
User Henries
Submission Time 2024-11-14 18:06:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

buyingcandy.cpp: In function ‘int main()’:
buyingcandy.cpp:27:113: error: template argument 2 is invalid
27 | priority_queue<pair<long long,long long>,vector<pair<long long,long long>, greater<pair<long long,long long>>> vouchers;
| ^~~~~~~~
buyingcandy.cpp:27:113: error: template argument 3 is invalid
buyingcandy.cpp:34:3: error: ‘vouchers’ was not declared in this scope
34 | vouchers.push({minprice,discount});
| ^~~~~~~~
buyingcandy.cpp:36:11: error: ‘vouchers’ was not declared in this scope
36 | solve(pq,vouchers);
| ^~~~~~~~