QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#444738#8521. Pattern Search IIucup-team1405#Compile Error//C++20900b2024-06-15 21:03:072024-06-15 21:03:07

详细

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)
      |   ^~~~~