Problem problemsetter2
User nguyendinhanh1508
Submission Time 2024-12-09 13:37:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

problemsetter2.cpp: In function ‘int32_t main()’:
problemsetter2.cpp:28:5: error: ‘pq’ was not declared in this scope; did you mean ‘p’?
28 | pq.push(con[ind].second);
| ^~
| p
problemsetter2.cpp:31:8: error: ‘pq’ was not declared in this scope; did you mean ‘p’?
31 | if(!pq.empty() && pq.top() >= prob[i].second){
| ^~
| p
problemsetter2.cpp:32:5: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
32 | ans += pq.top() - prob[i].second;
| ^~~
| abs