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_39814428_32390.cpp: In function 'int circle_intersection(Circle, Circle, Point&, Point&)':
0_0_39814428_32390.cpp:277:15: error: reference to 'relation' is ambiguous
  277 |     int rel = relation(a, v);
      |               ^~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:37,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:65,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:64,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/specfun.h:43,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:3716,
                 from 0_0_39814428_32390.cpp:2:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/concepts:365:13: note: candidates are: 'template<class _Rel, class _Tp, class _Up> concept std::relation'
  365 |     concept relation
      |             ^~~~~~~~
0_0_39814428_32390.cpp:256:5: note:                 'int relation(Circle, Circle)'
  256 | int relation(Circle a, Circle v)
      |     ^~~~~~~~
0_0_39814428_32390.cpp:247:5: note:                 'int relation(Line, Circle)'
  247 | int relation(Line a, Circle b)
      |     ^~~~~~~~
0_0_39814428_32390.cpp:238:5: note:                 'int relation(Point, Circle)'
  238 | int relation(Point p, Circle a)
      |     ^~~~~~~~
0_0_39814428_32390.cpp: In function 'int line_cirlce_intersection(Line, Circle, Point&, Point&)':
0_0_39814428_32390.cpp:294:10: error: reference to 'relation' is ambiguous
  294 |     if (!relation(v, u))
      |          ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/concepts:365:13: note: candidates are: 'template<class _Rel, class _Tp, class _Up> concept std::relation'
  365 |     concept relation
      |             ^~~~~~~~
0_0_39814428_32390.cpp:256:5: note:                 'int relation(Circle, Circle)'
  256 | int relation(Circle a, Circle v)
      |     ^~~~~~~~
0_0_39814428_32390.cpp:247:5: note:                 'int relation(Line, Circle)'
  247 | int relation(Line a, Circle b)
      |     ^~~~~~~~
0_0_39814428_32390.cpp:238:5: note:                 'int relation(Point, Circle)'
  238 | int relation(Point p, Circle a)
      |     ^~~~~~~~
0_0_39814428_32390.cpp: In function 'double circle_traingle_area(Point, Point, Circle)':
0_0_39814428_32390.cpp:334:13: error: reference to 'relation' is ambiguous
  334 |         if (relation(q[i], c) == 0 || relation(q[i + 1], c) == 0)
      |             ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/concepts:365:13: note: candidates are: 'template<class _Rel, class _Tp, class _Up> concept std::relation'
  365 |     concept relation
      |             ^~~~~~~~
0_0_39814428_32390.cpp:256:5: note:                 'int relation(Circle, Circle)'
  256 | int relation(Circle a, Circle v)
      |     ^~~~~~~~
0_0_39814428_32390.cpp:247:5: note:                 'int relation(Line, Circle)'
  247 | int relation(Line a, Circle b)
      |     ^~~~~~~~
0_0_39814428_32390.cpp:238:5: note:                 'int relation(Point, Circle)'
  238 | int relation(Point p, Circle a)
      |     ^~~~~~~~
0_0_39814428_32390.cpp:334:39: error: reference to 'relation' is ambiguous
  334 |         if (relation(q[i], c) == 0 || relation(q[i + 1], c) == 0)
      |                                       ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/concepts:365:13: note: candidates are: 'template<class _Rel, class _Tp, class _Up> concept std::relation'
  365 |     concept relation
      |             ^~~~~~~~
0_0_39814428_32390.cpp:256:5: note:                 'int relation(Circle, Circle)'
  256 | int relation(Circle a, Circle v)
      |     ^~~~~~~~
0_0_39814428_32390.cpp:247:5: note:                 'int relation(Line, Circle)'
  247 | int relation(Line a, Circle b)
      |     ^~~~~~~~
0_0_39814428_32390.cpp:238:5: note:                 'int relation(Point, Circle)'
  238 | int relation(Point p, Circle a)
      |     ^~~~~~~~


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-11-26 05:37:34, Gzip enabled