Problem area2
User Gj
Submission Time 2026-03-05 14:01:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/nested_exception.h:40,
from /usr/include/c++/9/exception:144,
from /usr/include/c++/9/ios:39,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from area2.cpp:28:
/usr/include/c++/9/type_traits:2490:15: error: ‘template<class _Tp, long unsigned int _Nm> typename std::enable_if<std::__is_swappable<_Tp>::value>::type std::swap’ conflicts with a previous declaration
2490 | swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm])
| ^
/usr/include/c++/9/type_traits:2483:5: note: previous declaration ‘typename std::enable_if<std::__and_<std::__not_<std::__is_tuple_like<_Tp> >, std::is_move_constructible<_Tp>, std::is_move_assignable<_Tp> >::value>::type std::swap(_Tp&, _Tp&)’
2483 | swap