QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#598515#9434. Italian Cuisineucup-team3837#Compile Error//C++2325.6kb2024-09-28 22:16:482024-09-28 22:16:51

详细

answer.code: In instantiation of ‘constexpr int Geometry::sign(const T&) [with T = __int128]’:
answer.code:469:16:   required from ‘constexpr bool Geometry::isZero(const T&) [with T = __int128]’
answer.code:570:72:   required from here
answer.code:459:13: error: call of overloaded ‘fabs(const __int128&)’ is ambiguous
  459 |     if (fabs(a) < eps) return 0;
      |         ~~~~^~~
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:162:1: note: candidate: ‘double fabs(double)’
  162 | __MATHCALLX (fabs,, (_Mdouble_ __x), (__const__));
      | ^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:114:
/usr/include/c++/13/cmath:989:3: note: candidate: ‘constexpr __gnu_cxx::__bfloat16_t std::fabs(__gnu_cxx::__bfloat16_t)’
  989 |   fabs(__gnu_cxx::__bfloat16_t __x)
      |   ^~~~
/usr/include/c++/13/cmath:899:3: note: candidate: ‘constexpr _Float128 std::fabs(_Float128)’
  899 |   fabs(_Float128 __x)
      |   ^~~~
/usr/include/c++/13/cmath:713:3: note: candidate: ‘constexpr _Float64 std::fabs(_Float64)’
  713 |   fabs(_Float64 __x)
      |   ^~~~
/usr/include/c++/13/cmath:619:3: note: candidate: ‘constexpr _Float32 std::fabs(_Float32)’
  619 |   fabs(_Float32 __x)
      |   ^~~~
/usr/include/c++/13/cmath:525:3: note: candidate: ‘constexpr _Float16 std::fabs(_Float16)’
  525 |   fabs(_Float16 __x)
      |   ^~~~
/usr/include/c++/13/cmath:238:3: note: candidate: ‘constexpr long double std::fabs(long double)’
  238 |   fabs(long double __x)
      |   ^~~~
/usr/include/c++/13/cmath:234:3: note: candidate: ‘constexpr float std::fabs(float)’
  234 |   fabs(float __x)
      |   ^~~~