Problem | goofyarray |
---|---|
User | Henries |
Submission Time | 2024-10-20 16:20:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
goofyarray.cpp: In function ‘void solve(std::vector<long long int>, std::vector<long long int>, long long int)’:
goofyarray.cpp:6:10: error: ‘pq’ was not declared in this scope
6 | while (!pq.empty()){
| ^~
goofyarray.cpp: In function ‘int main()’:
goofyarray.cpp:34:21: error: cannot convert ‘std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >’ to ‘long long int’
34 | solve(v,prefixsum,pq,d);
| ^~
| |
| std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >
goofyarray.cpp:3:72: note: initializing argument 3 of ‘void solve(std::vector<long long int>, std::vector<long long int>, long long int)’
3 | void solve(vector<long long> v, vector<long long> prefixsum, long long d){
|