Problem exhibition
User Henries
Submission Time 2024-10-24 17:59:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exhibition.cpp: In function ‘long long int solve(std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >, std::vector<std::pair<long long int, long long int> >)’:
exhibition.cpp:12:10: error: ‘ndex’ was not declared in this scope; did you mean ‘index’?
12 | while (ndex < v.size() && v[index].first <= currentsize ){
| ^~~~
| index