Problem procrastinatingtrainers
User LordOfTheCookies
Submission Time 2026-06-25 09:46:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

procrastinatingtrainers.cpp: In function ‘int main()’:
procrastinatingtrainers.cpp:21:37: error: no match for ‘operator[]’ (operand types are ‘std::priority_queue<long long int>’ and ‘int’)
21 | cout << instructions[1] << "\n";
| ^
procrastinatingtrainers.cpp:22:30: error: ‘class std::priority_queue<long long int>’ has no member named ‘erase’
22 | instructions.erase(instructions.begin() + 1);
| ^~~~~
procrastinatingtrainers.cpp:22:49: error: ‘class std::priority_queue<long long int>’ has no member named ‘begin’
22 | instructions.erase(instructions.begin() + 1);
| ^~~~~