fish.cpp: In function 'long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:48:18: error: 'info' was not declared in this scope
48 | priority_queue<info, vector<info>, CustomCompare> pq;
| ^~~~
fish.cpp:48:35: error: template argument 2 is invalid
48 | priority_queue<info, vector<info>, CustomCompare> pq;
| ^
fish.cpp:48:38: error: 'CustomCompare' was not declared in this scope
48 | priority_queue<info, vector<info>, CustomCompare> pq;
| ^~~~~~~~~~~~~
fish.cpp:48:51: error: template argument 1 is invalid
48 | priority_queue<info, vector<info>, CustomCompare> pq;
| ^
fish.cpp:48:51: error: template argument 2 is invalid
fish.cpp:48:51: error: template argument 3 is invalid
fish.cpp:52:7: error: request for member 'push' in 'pq', which is of non-class type 'int'
52 | pq.push({Y[i], W[i], X[i] == 0});
| ^~~~
fish.cpp:59:13: error: request for member 'empty' in 'pq', which is of non-class type 'int'
59 | while(!pq.empty()){
| ^~~~~
fish.cpp:60:8: error: expected ';' before 'p'
60 | info p = pq.top();
| ^~
| ;
fish.cpp:61:7: error: request for member 'pop' in 'pq', which is of non-class type 'int'
61 | pq.pop();
| ^~~
fish.cpp:64:7: error: 'p' was not declared in this scope; did you mean 'pq'?
64 | if(p.flag) curr += p.w, ans = max(ans, curr);
| ^
| pq