Problem escalation
User chenweilian
Submission Time 2023-12-31 15:52:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

escalation.cpp: In function ‘int dfs(int, int)’:
escalation.cpp:87:30: error: reference to ‘data’ is ambiguous
87 | cur = max(cur, m1 + m2 + data[x]);
| ^~~~
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 escalation.cpp:1:
/usr/include/c++/9/bits/range_access.h:318:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
318 | data(initializer_list<_Tp> __il) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:309:5: note: ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_