answer.code:48:10: error: ‘int y0’ redeclared as different kind of entity
48 | int n,x0,y0,d,t;
| ^~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:679,
from /usr/include/c++/13/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:33,
from answer.code:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:220:1: note: previous declaration ‘double y0(double)’
220 | __MATHCALL (y0,, (_Mdouble_));
| ^~~~~~~~~~
answer.code: In function ‘void solve()’:
answer.code:86:21: error: assignment of function ‘double y0(double)’
86 | x0=read(),y0=read(),d=read(),t=read();
| ~~^~~~~~~
answer.code:97:24: error: no matching function for call to ‘atan2(double (&)(double) noexcept, int&)’
97 | double p0=atan2(y0,x0);
| ~~~~~^~~~~~~
In file included from /usr/include/c++/13/valarray:605,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:166:
/usr/include/c++/13/bits/valarray_after.h:548:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::_Atan2, std::_Constant, std::_ValArray, _Tp, _Tp>, _Tp> std::atan2(const typename valarray<_Tp>::value_type&, const valarray<_Tp>&)’
548 | _DEFINE_EXPR_BINARY_FUNCTION(atan2, struct std::_Atan2)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:548:1: note: template argument deduction/substitution failed:
answer.code:97:24: note: mismatched types ‘const std::valarray<_Tp>’ and ‘int’
97 | double p0=atan2(y0,x0);
| ~~~~~^~~~~~~
/usr/include/c++/13/bits/valarray_after.h:548:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::_Atan2, std::_ValArray, std::_Constant, _Tp, _Tp>, _Tp> std::atan2(const valarray<_Tp>&, const typename valarray<_Tp>::value_type&)’
548 | _DEFINE_EXPR_BINARY_FUNCTION(atan2, struct std::_Atan2)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:548:1: note: template argument deduction/substitution failed:
answer.code:97:24: note: mismatched types ‘const std::valarray<_Tp>’ and ‘double(double) noexcept’
97 | double p0=atan2(y0,x0);
| ~~~~~^~~~~~~
/usr/include/c++/13/bits/valarray_after.h:548:1: note: candidate: ‘template<class _Tp> std::_Expr<std::__detail::_BinClos<std::_Atan2, std::_ValArray, std::_ValArray, _Tp, _Tp>, _Tp> std::atan2(const valarray<_Tp>&, const valarray<_Tp>&)’
548 | _DEFINE_EXPR_BINARY_FUNCTION(atan2, struct std::_Atan2)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:548:1: note: template argument deduction/substitution failed:
answer.code:97:24: note: mismatched types ‘const std::valarray<_Tp>’ and ‘double(double) noexcept’
97 | double p0=atan2(y0,x0);
| ~~~~~^~~~~~~
/usr/include/c++/13/bits/valarray_after.h:548:1: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::_Atan2, std::_Constant, std::_Expr, typename _Dom::value_type, _Dom>, typename _Dom::value_type> std::atan2(const typename _Dom::value_type&, const _Expr<_Dom1, typename _Dom1::value_type>&)’
548 | _DEFINE_EXPR_BINARY_FUNCTION(atan2, struct std::_Atan2)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:548:1: note: template argument deduction/substitution failed:
answer.code:97:24: note: mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘int’
97 | double p0=atan2(y0,x0);
| ~~~~~^~~~~~~
/usr/include/c++/13/bits/valarray_after.h:548:1: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::_Atan2, std::_Expr, std::_Constant, _Dom, typename _Dom::value_type>, typename _Dom::value_type> std::atan2(const _Expr<_Dom1, typename _Dom1::value_type>&, const typename _Dom::value_type&)’
548 | _DEFINE_EXPR_BINARY_FUNCTION(atan2, struct std::_Atan2)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:548:1: note: template argument deduction/substitution failed:
answer.code:97:24: note: mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘double(double) noexcept’
97 | double p0=atan2(y0,x0);
| ~~~~~^~~~~~~
/usr/include/c++/13/bits/valarray_after.h:548:1: note: candidate: ‘template<class _Dom> std::_Expr<std::__detail::_BinClos<std::_Atan2, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename _Dom::value_type> std::atan2(const valarray<typename _Dom::valarray>&, const _Expr<_Dom1, typename _Dom1::value_type>&)’
548 | _DEFINE_EXPR_BINARY_FUNCTION(atan2, struct std::_Atan2)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/valarray_after.h:548:1:...