closing.cpp: In function 'int max_score(int, int, int, long long int, std::vector<int>, std::vector<int>, std::vector<int>)':
closing.cpp:19:12: error: 'class std::priority_queue<std::pair<int, int> >' has no member named 'push_back'
19 | pq.push_back({-w, v});
| ^~~~~~~~~
closing.cpp:22:12: error: 'class std::priority_queue<std::pair<int, int> >' has no member named 'push_back'
22 | pq.push_back({-w, v});
| ^~~~~~~~~
closing.cpp:24:9: error: redeclaration of 'int ans'
24 | int ans = 0, sum = 0;;
| ^~~
closing.cpp:16:9: note: 'int ans' previously declared here
16 | int ans = 0;
| ^~~
closing.cpp:31:20: error: 'k' was not declared in this scope
31 | if(sum+w > k){
| ^