Problem installingapps_ex
User YSH2020
Submission Time 2025-12-08 11:07:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

installingapps_ex.cpp: In function ‘int main()’:
installingapps_ex.cpp:30:37: error: request for member ‘second’ in ‘pq.std::priority_queue<std::pair<int, int> >::top().std::pair<int, int>::second’, which is of non-class type ‘const int’
30 | ans[pq.top().second.second]=false;
| ^~~~~~