Problem | exhibition |
---|---|
User | Henries |
Submission Time | 2024-10-24 11:27:22 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:9:40: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::pair<long long int, long long int> >’ and ‘<unresolved overloaded function type>’)
9 | pair<long long,long long> picture = v[index];
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from exhibitio