QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#444738 | #8521. Pattern Search II | ucup-team1405# | Compile Error | / | / | C++20 | 900b | 2024-06-15 21:03:07 | 2024-06-15 21:03:07 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int get(std::string&, ld, ld)’: answer.code:16:26: error: call of overloaded ‘floor(ld)’ is ambiguous 16 | ld x1 = floor(x + eps) + 1; | ~~~~~^~~~~~~~~ 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:165:1: note: candidate: ‘double floor(double)’ 165 | __MATHCALLX (floor,, (_Mdouble_ __x), (__const__)); | ^~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:114: /usr/include/c++/13/cmath:257:3: note: candidate: ‘constexpr long double std::floor(long double)’ 257 | floor(long double __x) | ^~~~~ /usr/include/c++/13/cmath:253:3: note: candidate: ‘constexpr float std::floor(float)’ 253 | floor(float __x) | ^~~~~ answer.code:20:26: error: call of overloaded ‘floor(ld)’ is ambiguous 20 | ld y1 = floor(y + eps) + 1; | ~~~~~^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/mathcalls.h:165:1: note: candidate: ‘double floor(double)’ 165 | __MATHCALLX (floor,, (_Mdouble_ __x), (__const__)); | ^~~~~~~~~~~ /usr/include/c++/13/cmath:257:3: note: candidate: ‘constexpr long double std::floor(long double)’ 257 | floor(long double __x) | ^~~~~ /usr/include/c++/13/cmath:253:3: note: candidate: ‘constexpr float std::floor(float)’ 253 | floor(float __x) | ^~~~~ answer.code:25:17: error: call of overloaded ‘floor(ld)’ is ambiguous 25 | return floor(x - xw) + floor(y - yw) + 1; | ~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/mathcalls.h:165:1: note: candidate: ‘double floor(double)’ 165 | __MATHCALLX (floor,, (_Mdouble_ __x), (__const__)); | ^~~~~~~~~~~ /usr/include/c++/13/cmath:257:3: note: candidate: ‘constexpr long double std::floor(long double)’ 257 | floor(long double __x) | ^~~~~ /usr/include/c++/13/cmath:253:3: note: candidate: ‘constexpr float std::floor(float)’ 253 | floor(float __x) | ^~~~~ answer.code:25:33: error: call of overloaded ‘floor(ld)’ is ambiguous 25 | return floor(x - xw) + floor(y - yw) + 1; | ~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/mathcalls.h:165:1: note: candidate: ‘double floor(double)’ 165 | __MATHCALLX (floor,, (_Mdouble_ __x), (__const__)); | ^~~~~~~~~~~ /usr/include/c++/13/cmath:257:3: note: candidate: ‘constexpr long double std::floor(long double)’ 257 | floor(long double __x) | ^~~~~ /usr/include/c++/13/cmath:253:3: note: candidate: ‘constexpr float std::floor(float)’ 253 | floor(float __x) | ^~~~~