Problem famishedcats
User huubinh1717
Submission Time 2026-03-15 19:10:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

famishedcats.cpp: In function ‘int main()’:
famishedcats.cpp:36:33: error: no type named ‘value_type’ in ‘struct std::greater<std::pair<long long int, long long int> >’
36 | priority_queue<pll, greater<pll>> adhoc;
| ^~
famishedcats.cpp:36:33: error: template argument 3 is invalid
famishedcats.cpp:46:11: error: request for member ‘push’ in ‘adhoc’, which is of non-class type ‘int’
46 | adhoc.push({ idx, f[n - idx + 1] - f[idx] });
| ^~~~
famishedcats.cpp:53:39: error: request for member ‘top’ in ‘adhoc’, which is of non-class type ‘int’
53 | auto [id_replace, replace] = adhoc.top();
| ^~~
famishedcats.cpp:54:10: error: request for member ‘pop’ in ‘adhoc’, which is of non-class type ‘int’
54 | adhoc.pop();
| ^~~
famishedcats.cpp:55:46: error: request for member ‘empty’ in ‘adhoc’, which i