QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#851011 | #9576. Ordainer of Inexorable Judgment | lazy1105 | Compile Error | / | / | C++20 | 1.5kb | 2025-01-10 14:23:19 | 2025-01-10 14:23:20 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:20:10: error: ‘int y0’ redeclared as different kind of entity 20 | int n,x0,y0,d,t,X[111],Y[111]; | ^~ 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:12: /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 ‘int main()’: answer.code:30:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘double (*)(double) noexcept’ [-Wformat=] 30 | scanf("%d%d%d%d%d",&n,&x0,&y0,&d,&t); | ~^ ~~~ | | | | int* double (*)(double) noexcept answer.code:49:11: error: no matching function for call to ‘atan2(double (&)(double) noexcept, int&)’ 49 | nl=atan2(y0,x0),nr=nl+t; | ~~~~~^~~~~~~ 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:49:11: note: mismatched types ‘const std::valarray<_Tp>’ and ‘int’ 49 | nl=atan2(y0,x0),nr=nl+t; | ~~~~~^~~~~~~ /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:49:11: note: mismatched types ‘const std::valarray<_Tp>’ and ‘double(double) noexcept’ 49 | nl=atan2(y0,x0),nr=nl+t; | ~~~~~^~~~~~~ /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:49:11: note: mismatched types ‘const std::valarray<_Tp>’ and ‘double(double) noexcept’ 49 | nl=atan2(y0,x0),nr=nl+t; | ~~~~~^~~~~~~ /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:49:11: note: mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘int’ 49 | nl=atan2(y0,x0),nr=nl+t; | ~~~~~^~~~~~~ /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:49:11: note: mismatched types ‘const std::_Expr<_Dom1, typename _Dom1::value_type>’ and ‘double(double) noexcept’ 49 | nl=atan2(y0,x0),nr=nl+t; | ~~~~~^~~~~~~ /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) | ^~~...