Problem stonk
User Henries
Submission Time 2024-10-22 22:22:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stonk.cpp:4:2: error: ‘x’ declared as function returning a function
4 | bool x()(pair<long long,long long> p1,pair<long long,long long> p2){
| ^~~~
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