Problem | stonk |
---|---|
User | Henries |
Submission Time | 2024-10-22 22:22:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
stonk.cpp: In function ‘int main()’:
stonk.cpp:49:6: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> > >(cmp)’
49 | pq.push({num,i});
| ^~~~
stonk.cpp:51:18: error: could not convert ‘pq’ from ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> > > (*)(cmp)’ to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> > >’
51 | solve(prefixsum,pq,total);
| ^~
| |
| std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> > > (*)(cmp)