Problem spellofweakness
User chickengoat
Submission Time 2025-12-15 14:02:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

spellofweakness.cpp: In function ‘int main()’:
spellofweakness.cpp:8:30: error: no type named ‘value_type’ in ‘struct std::greater<long long int>’
8 | priority_queue<ll,greater<ll>> s;
| ^~
spellofweakness.cpp:8:30: error: template argument 3 is invalid
spellofweakness.cpp:16:5: error: request for member ‘push’ in ‘s’, which is of non-class type ‘int’
16 | s.push(f.front/2);
| ^~~~
spellofweakness.cpp:16:12: error: ‘class std::priority_queue<long long int>’ has no member named ‘front’
16 | s.push(f.front/2);
| ^~~~~
spellofweakness.cpp:21:13: error: request for member ‘front’ in ‘s’, which is of non-class type ‘int’
21 | while(d>=s.front()) {
| ^~~~~
spellofweakness.cpp:22:8: error: request for member ‘front’ in ‘s’, which is of non-class type ‘int’
22 | d-=s.front();
| ^~~~~
spellofweakness.cp