Problem lostones
User j0ashhh
Submission Time 2026-02-17 09:00:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lostones.cpp: In function ‘int main()’:
lostones.cpp:9:91: error: template argument 2 is invalid
9 | priority_queue<pair<long long, long long>, vector<pair<long long, long long>, greater<>> pq;
| ^~
lostones.cpp:9:91: error: template argument 3 is invalid
lostones.cpp:13:3: error: ‘pq’ was not declared in this scope
13 | pq.push({a, b});
| ^~
lostones.cpp:17:21: error: ‘pq’ was not declared in this scope
17 | auto [val, inc] = pq.top();
| ^~
lostones.cpp:20:26: error: expected ‘}’ before ‘]’ token
20 | pq.push({val + inc, inc]};
| ~ ^
lostones.cpp:20:26: error: expected ‘)’ before ‘]’ token
20 | pq.push({val + inc, inc]};
| ~ ^
| )
lostones.cpp: At global scope:
l