| Problem | dystopia |
|---|---|
| User | Shadow1 |
| Submission Time | 2026-01-01 18:18:04 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
dystopia.cpp: In function ‘int main()’:
dystopia.cpp:25:31: error: reference to ‘size’ is ambiguous
25 | for(int i=1;i<=n;i++)pa[i]=i,size[i]=1;
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/stdexcept:39,
from /usr/include/c++/9/array:39,
from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from dystopia.cpp:2:
/usr/include/c++/9/bits/range_access.h:252:5: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])’
252 | size(const _Tp (&/*__array*/)[_Nm]) noexcept
| ^~~~
/usr/include/c++/9/bits/range_access.h:242:5: note: ‘template<clas