Problem | stonk |
---|---|
User | Henries |
Submission Time | 2024-10-22 22:17:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
stonk.cpp: In function ‘int main()’:
stonk.cpp:33:83: error: type/value mismatch at argument 3 in template parameter list for ‘template<class _Tp, class _Sequence, class _Compare> class std::priority_queue’
33 | priority_queue<pair<long long,long long> , vector<pair<long long,long long>>, cmp> pq;
| ^
stonk.cpp:33:83: note: expected a type, got ‘cmp’
stonk.cpp:47:6: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’
47 | pq.push({num,i});
| ^~~~
stonk.cpp:49:18: error: could not convert ‘pq’ from ‘int’ to ‘std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> > >’
49 | solve(prefixsum,pq,total);
| ^~
| |
| int