| Problem | candies_ioi |
|---|---|
| User | popperoni |
| Submission Time | 2026-03-05 07:29:35 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
candies_ioi.cpp: In function ‘std::vector<int> distribute_candies(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)’:
candies_ioi.cpp:169:47: error: no match for ‘operator-’ (operand types are ‘std::pair<long long int, long long int>’ and ‘long long int’)
169 | ans[i]=root->maxqry(root->minqry(r,q).se,q)-root->minqry(0,q).fi;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
| |
| std::pair<long long int, long long int>
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/vector:60,
from candies_ioi.h:1,
from candies_ioi.cpp:16:
/usr/include/c++/9/bits/stl_iterator.h:415:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const std::reverse_iterator<