Problem | feast |
---|---|
User | hwy |
Submission Time | 2023-06-24 23:36:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
feast.cpp: In function ‘std::vector<long long int> func(std::vector<long long int>)’:
feast.cpp:23:6: error: ‘class std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >’ has no member named ‘push_back’
23 | pq.push_back({abs(V[i]), i});
| ^~~~~~~~~
feast.cpp:25:28: error: conversion from ‘const value_type’ {aka ‘const long long int’} to non-scalar type ‘std::pair<long long int, long long int>’ requested
25 | pair<ll, ll> temp = pq.top();
| ~~~~~~^~