Problem modules
User PlayVoltz
Submission Time 2023-12-12 02:07:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

modules.cpp: In function ‘bool can(long long int)’:
modules.cpp:39:16: error: reference to ‘end’ is ambiguous
39 | while (p!=n&&end[p].t+lim<=start[i].t)add=max(add, dp[end[p++].id]);
| ^~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from modules.cpp:1:
/usr/include/c++/9/bits/range_access.h:107:37: note: candidates are: ‘template<class _Tp> const _Tp* std::end(const std::valarray<_Tp>&)’
107 | template<typename _Tp> const _Tp* end(const valarray<_Tp>&);
| ^~~
/usr/include/c++/9/bits/range_access.h:106:31: note: ‘template<cla