QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#856488 | #9728. Catch the Star | ucup-team3862 | Compile Error | / | / | C++20 | 11.5kb | 2025-01-14 04:39:16 | 2025-01-14 04:39:18 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:295:30: error: call of overloaded ‘fabs(Float)’ is ambiguous 295 | if (++cas == 1141 && fabs(ret - 0.0) < 1e-4) { | ~~~~^~~~~~~~~~~ In file included from /usr/include/features.h:502, from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:680, from /usr/include/c++/14/cassert:43, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33, from answer.code:8: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:162:1: note: candidate: ‘double fabs(double)’ 162 | __MATHCALLX (fabs,, (_Mdouble_ __x), (__const__)); | ^~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:114: /usr/include/c++/14/cmath:242:3: note: candidate: ‘constexpr long double std::fabs(long double)’ 242 | fabs(long double __x) | ^~~~ /usr/include/c++/14/cmath:238:3: note: candidate: ‘constexpr float std::fabs(float)’ 238 | fabs(float __x) | ^~~~