Problem doubling
User ethantanaki
Submission Time 2026-12-04 12:47:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

doubling.cpp: In function ‘int main()’:
doubling.cpp:24:30: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::const_iterator std::vector<_Tp, _Alloc>::begin() const [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::const_iterator = __gnu_cxx::__normal_iterator<const long long int*, std::vector<long long int> >; typename __gnu_cxx::__alloc_traits<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type>::const_pointer = const long long int*]’ (did you forget the ‘()’ ?)
24 | if(next(ms.begin(),i)<(*v.begin+i)*2) works=false;
| ~~^~~~~
| ()