Problem | snowball |
---|---|
User | Henries |
Submission Time | 2024-10-08 11:24:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
snowball.cpp: In function ‘void solve(std::priority_queue<long long int>, long long int)’:
snowball.cpp:5:12: error: assignment of read-only location ‘pq.std::priority_queue<long long int>::top()’
5 | pq.top() += 1;
| ~~~~~~~~~^~~~
snowball.cpp: In function ‘int main()’:
snowball.cpp:21:11: error: ‘top’ was not declared in this scope
21 | pq.push(top);
| ^~~
snowball.cpp:23:11: error: ‘class std::priority_queue<long long int>’ has no member named ‘d’
23 | solve(pq.d);
| ^