Problem | lostones |
---|---|
User | G |
Submission Time | 2024-12-21 10:49:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lostones.cpp: In function ‘int main()’:
lostones.cpp:14:14: error: cannot convert ‘const value_type’ {aka ‘const std::pair<long long int, long long int>’} to ‘ll’ {aka ‘long long int’} in initialization
14 | ll a=pq.top();
| ~~~~~~^~
| |
| const value_type {aka const std::pair<long long int, long long int>}
lostones.cpp:16:10: error: request for member ‘first’ in ‘a’, which is of non-class type ‘ll’ {aka ‘long long int’}
16 | res+=a.first;
| ^~~~~
lostones.cpp:17:5: error: request for member ‘first’ in ‘a’, which is of non-class type ‘ll’ {aka ‘long long int’}
17 | a.first+=a.second;
| ^~~~~
lostones.cpp:17:14: error: request for member ‘second’ in ‘a’, which is of non-class type ‘ll’ {aka ‘long long int’}
17 | a.first+=a.second;
| ^~~~~~
lostones.cpp:18:12: error: no matching function for call to ‘std::priority_queu