Problem | towers_noi |
---|---|
User | PlayVoltz |
Submission Time | 2024-03-04 13:08:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
towers_noi.cpp: In function ‘void del(long long int, std::pair<long long int, long long int>)’:
towers_noi.cpp:45:48: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::pair<long long int, long long int> >’ and ‘std::pair<long long int, long long int>’)
45 | if (p[b.fi].fi<p[b.fi].se)insert(b.fi, x[b.fi][p[b.fi]]);
| ^
In file included from /usr/include/c++/9/vector:67,
from towers_noi.cpp:3:
/usr/include/c++/9/bits/stl_vector.h:1040:7: note: candidate: ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = std::pair<long long int, long long int>; _Alloc = std::allocator<std::pair<long long int, long long int> >; std::vector<_Tp, _Alloc>::reference = std::pair<long long int, long long int>&; std::vector<_Tp, _Alloc>::size_type = l