F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38807389_28170.cpp: In function 'int sgn(__int128)':
0_0_38807389_28170.cpp:35:13: error: call of overloaded 'fabs(__int128&)' is ambiguous
   35 |     if (fabs(x) < eps)
      |         ~~~~^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:47,
                 from .\stdc++.h:114:
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:225:31: note: candidate: 'double fabs(double)'
  225 |   __CRT_INLINE double __cdecl fabs (double x)
      |                               ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:247:3: note: candidate: 'constexpr long double std::fabs(long double)'
  247 |   fabs(long double __x)
      |   ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:243:3: note: candidate: 'constexpr float std::fabs(float)'
  243 |   fabs(float __x)
      |   ^~~~
0_0_38807389_28170.cpp: In member function 'Point Point::Rotate(__int128, Point)':
0_0_38807389_28170.cpp:65:32: error: call of overloaded 'cos(__int128&)' is ambiguous
   65 |         tmp.x = (x - P.x) * cos(B) - (y - P.y) * sin(B) + P.x;
      |                             ~~~^~~
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:179:18: note: candidate: 'double cos(double)'
  179 |   double __cdecl cos(double _X);
      |                  ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:190:3: note: candidate: 'constexpr long double std::cos(long double)'
  190 |   cos(long double __x)
      |   ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:186:3: note: candidate: 'constexpr float std::cos(float)'
  186 |   cos(float __x)
      |   ^~~
0_0_38807389_28170.cpp:65:53: error: call of overloaded 'sin(__int128&)' is ambiguous
   65 |         tmp.x = (x - P.x) * cos(B) - (y - P.y) * sin(B) + P.x;
      |                                                  ~~~^~~
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:178:18: note: candidate: 'double sin(double)'
  178 |   double __cdecl sin(double _X);
      |                  ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:431:3: note: candidate: 'constexpr long double std::sin(long double)'
  431 |   sin(long double __x)
      |   ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:427:3: note: candidate: 'constexpr float std::sin(float)'
  427 |   sin(float __x)
      |   ^~~
0_0_38807389_28170.cpp:66:32: error: call of overloaded 'sin(__int128&)' is ambiguous
   66 |         tmp.y = (x - P.x) * sin(B) + (y - P.y) * cos(B) + P.y;
      |                             ~~~^~~
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:178:18: note: candidate: 'double sin(double)'
  178 |   double __cdecl sin(double _X);
      |                  ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:431:3: note: candidate: 'constexpr long double std::sin(long double)'
  431 |   sin(long double __x)
      |   ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:427:3: note: candidate: 'constexpr float std::sin(float)'
  427 |   sin(float __x)
      |   ^~~
0_0_38807389_28170.cpp:66:53: error: call of overloaded 'cos(__int128&)' is ambiguous
   66 |         tmp.y = (x - P.x) * sin(B) + (y - P.y) * cos(B) + P.y;
      |                                                  ~~~^~~
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:179:18: note: candidate: 'double cos(double)'
  179 |   double __cdecl cos(double _X);
      |                  ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:190:3: note: candidate: 'constexpr long double std::cos(long double)'
  190 |   cos(long double __x)
      |   ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:186:3: note: candidate: 'constexpr float std::cos(float)'
  186 |   cos(float __x)
      |   ^~~
0_0_38807389_28170.cpp: In function '__int128 getdis_Point(Point&, Point&)':
0_0_38807389_28170.cpp:77:16: error: call of overloaded 'sqrt(__int128)' is ambiguous
   77 |     return sqrt((a - b) * (a - b));
      |            ~~~~^~~~~~~~~~~~~~~~~~~
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:192:18: note: candidate: 'double sqrt(double)'
  192 |   double __cdecl sqrt(double _X);
      |                  ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:469:3: note: candidate: 'constexpr long double std::sqrt(long double)'
  469 |   sqrt(long double __x)
      |   ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:465:3: note: candidate: 'constexpr float std::sqrt(float)'
  465 |   sqrt(float __x)
      |   ^~~~
0_0_38807389_28170.cpp: In function 'bool mycmp(Line&, Line&)':
0_0_38807389_28170.cpp:257:14: error: call of overloaded 'atan2(__int128&, __int128&)' is ambiguous
  257 |     if (atan2(a.s.y, a.s.x) != atan2(b.s.y, b.s.x))
      |         ~~~~~^~~~~~~~~~~~~~
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:187:18: note: candidate: 'double atan2(double, double)'
  187 |   double __cdecl atan2(double _Y,double _X);
      |                  ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:150:3: note: candidate: 'constexpr long double std::atan2(long double, long double)'
  150 |   atan2(long double __y, long double __x)
      |   ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:146:3: note: candidate: 'constexpr float std::atan2(float, float)'
  146 |   atan2(float __y, float __x)
      |   ^~~~~
0_0_38807389_28170.cpp:257:37: error: call of overloaded 'atan2(__int128&, __int128&)' is ambiguous
  257 |     if (atan2(a.s.y, a.s.x) != atan2(b.s.y, b.s.x))
      |                                ~~~~~^~~~~~~~~~~~~~
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:187:18: note: candidate: 'double atan2(double, double)'
  187 |   double __cdecl atan2(double _Y,double _X);
      |                  ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:150:3: note: candidate: 'constexpr long double std::atan2(long double, long double)'
  150 |   atan2(long double __y, long double __x)
      |   ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:146:3: note: candidate: 'constexpr float std::atan2(float, float)'
  146 |   atan2(float __y, float __x)
      |   ^~~~~
0_0_38807389_28170.cpp:258:21: error: call of overloaded 'atan2(__int128&, __int128&)' is ambiguous
  258 |         return atan2(a.s.y, a.s.x) < atan2(b.s.y, b.s.x);
      |                ~~~~~^~~~~~~~~~~~~~
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:187:18: note: candidate: 'double atan2(double, double)'
  187 |   double __cdecl atan2(double _Y,double _X);
      |                  ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:150:3: note: candidate: 'constexpr long double std::atan2(long double, long double)'
  150 |   atan2(long double __y, long double __x)
      |   ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:146:3: note: candidate: 'constexpr float std::atan2(float, float)'
  146 |   atan2(float __y, float __x)
      |   ^~~~~
0_0_38807389_28170.cpp:258:43: error: call of overloaded 'atan2(__int128&, __int128&)' is ambiguous
  258 |         return atan2(a.s.y, a.s.x) < atan2(b.s.y, b.s.x);
      |                                      ~~~~~^~~~~~~~~~~~~~
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:187:18: note: candidate: 'double atan2(double, double)'
  187 |   double __cdecl atan2(double _Y,double _X);
      |                  ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:150:3: note: candidate: 'constexpr long double std::atan2(long double, long double)'
  150 |   atan2(long double __y, long double __x)
      |   ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:146:3: note: candidate: 'constexpr float std::atan2(float, float)'
  146 |   atan2(float __y, float __x)
      |   ^~~~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-09 04:29:57, Gzip enabled