Problem potatosalad
User MintTea
Submission Time 2024-01-12 15:06:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from potatosalad.cpp:1:
/usr/include/c++/9/bits/stl_iterator.h: In instantiation of ‘constexpr std::reverse_iterator<_Iterator> std::reverse_iterator<_Iterator>::operator+(std::reverse_iterator<_Iterator>::difference_type) const [with _Iterator = std::_Rb_tree_const_iterator<long long int>; std::reverse_iterator<_Iterator>::difference_type = long int]’:
potatosalad.cpp:16:26: required from here
/usr/include/c++/9/bits/stl_iterator.h:255:41: error: no match for ‘operator-’ (operand types are ‘const std::_Rb_tree_const_iterator<long long int>’ and ‘std::reverse_iterator<std::_Rb_tree_const_iterator<long long int> >::difference_type’ {aka ‘long int’})