Problem | potatosalad |
---|---|
User | JunKai627 |
Submission Time | 2025-06-19 15:23:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin >> N >> D;
| ^~~
potatosalad.cpp:5:5: error: ‘priority_queue’ was not declared in this scope
5 | priority_queue<long long> mass;
| ^~~~~~~~~~~~~~
potatosalad.cpp:5:20: error: expected primary-expression before ‘long’
5 | priority_queue<long long> mass;
| ^~~~
potatosalad.cpp:10:9: error: ‘mass’ was not declared in this scope
10 | mass.push(potato_mass);
| ^~~~
potatosalad.cpp:14:37: error: ‘mass’ was not declared in this scope
14 | for (long long i = 0; i < D && !mass.empty(); i++) {
| ^~~~
potatosalad.cpp:19:5: error: ‘cout’ was not declared in this scope
19 | cout << total_mass << endl;
| ^~~~
potatosalad.cpp:19:27: er