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_39814418_288.cpp: In function 'int circle_intersection(Circle, Circle, Point&, Point&)':
0_0_39814418_288.cpp:216:15: error: reference to 'relation' is ambiguous
  216 |     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_39814418_288.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_39814418_288.cpp:203:5: note:                 'int relation(Circle, Circle)'
  203 | int relation (Circle a, Circle v) {//两圆的位置关系
      |     ^~~~~~~~
0_0_39814418_288.cpp:196:5: note:                 'int relation(Line, Circle)'
  196 | int relation (Line a, Circle b) {//直线和圆的关系
      |     ^~~~~~~~
0_0_39814418_288.cpp:189:5: note:                 'int relation(Point, Circle)'
  189 | int relation (Point p, Circle a) {//点和圆的关系
      |     ^~~~~~~~
0_0_39814418_288.cpp: In function 'int line_cirlce_intersection(Line, Circle, Point&, Point&)':
0_0_39814418_288.cpp:231:10: error: reference to 'relation' is ambiguous
  231 |     if (!relation (v, u)) return 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_39814418_288.cpp:203:5: note:                 'int relation(Circle, Circle)'
  203 | int relation (Circle a, Circle v) {//两圆的位置关系
      |     ^~~~~~~~
0_0_39814418_288.cpp:196:5: note:                 'int relation(Line, Circle)'
  196 | int relation (Line a, Circle b) {//直线和圆的关系
      |     ^~~~~~~~
0_0_39814418_288.cpp:189:5: note:                 'int relation(Point, Circle)'
  189 | int relation (Point p, Circle a) {//点和圆的关系
      |     ^~~~~~~~
0_0_39814418_288.cpp: In function 'double circle_traingle_area(Point, Point, Circle)':
0_0_39814418_288.cpp:262:13: error: reference to 'relation' is ambiguous
  262 |         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_39814418_288.cpp:203:5: note:                 'int relation(Circle, Circle)'
  203 | int relation (Circle a, Circle v) {//两圆的位置关系
      |     ^~~~~~~~
0_0_39814418_288.cpp:196:5: note:                 'int relation(Line, Circle)'
  196 | int relation (Line a, Circle b) {//直线和圆的关系
      |     ^~~~~~~~
0_0_39814418_288.cpp:189:5: note:                 'int relation(Point, Circle)'
  189 | int relation (Point p, Circle a) {//点和圆的关系
      |     ^~~~~~~~
0_0_39814418_288.cpp:262:40: error: reference to 'relation' is ambiguous
  262 |         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_39814418_288.cpp:203:5: note:                 'int relation(Circle, Circle)'
  203 | int relation (Circle a, Circle v) {//两圆的位置关系
      |     ^~~~~~~~
0_0_39814418_288.cpp:196:5: note:                 'int relation(Line, Circle)'
  196 | int relation (Line a, Circle b) {//直线和圆的关系
      |     ^~~~~~~~
0_0_39814418_288.cpp:189:5: note:                 'int relation(Point, Circle)'
  189 | 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:20:20, Gzip enabled