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_38662095_193.cpp: In function 'int line_cross_line(Line, Line)':
0_0_38662095_193.cpp:179:33: error: reference to 'relation' is ambiguous
  179 |     if (parallel (a, v)) return relation (a.e, v) == 3;
      |                                 ^~~~~~~~
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_38662095_193.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_38662095_193.cpp:138:5: note:                 'int relation(Point, Line)'
  138 | int relation (Point p, Line l) {//点和直线的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp: In function 'int circle_intersection(Circle, Circle, Point&, Point&)':
0_0_38662095_193.cpp:287:15: error: reference to 'relation' is ambiguous
  287 |     int rel = relation (a, v);
      |               ^~~~~~~~
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_38662095_193.cpp:253:5: note:                 'int relation(Circle, Circle)'
  253 | int relation (Circle a, Circle v) {//两圆的位置关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:246:5: note:                 'int relation(Line, Circle)'
  246 | int relation (Line a, Circle b) {//直线和圆的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:239:5: note:                 'int relation(Point, Circle)'
  239 | int relation (Point p, Circle a) {//点和圆的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:138:5: note:                 'int relation(Point, Line)'
  138 | int relation (Point p, Line l) {//点和直线的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp: In function 'int line_cirlce_intersection(Line, Circle, Point&, Point&)':
0_0_38662095_193.cpp:302:10: error: reference to 'relation' is ambiguous
  302 |     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_38662095_193.cpp:253:5: note:                 'int relation(Circle, Circle)'
  253 | int relation (Circle a, Circle v) {//两圆的位置关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:246:5: note:                 'int relation(Line, Circle)'
  246 | int relation (Line a, Circle b) {//直线和圆的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:239:5: note:                 'int relation(Point, Circle)'
  239 | int relation (Point p, Circle a) {//点和圆的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:138:5: note:                 'int relation(Point, Line)'
  138 | int relation (Point p, Line l) {//点和直线的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp: In function 'int tan_line(Point, Circle, Line&, Line&)':
0_0_38662095_193.cpp:372:13: error: reference to 'relation' is ambiguous
  372 |     int x = relation (q, a);
      |             ^~~~~~~~
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_38662095_193.cpp:253:5: note:                 'int relation(Circle, Circle)'
  253 | int relation (Circle a, Circle v) {//两圆的位置关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:246:5: note:                 'int relation(Line, Circle)'
  246 | int relation (Line a, Circle b) {//直线和圆的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:239:5: note:                 'int relation(Point, Circle)'
  239 | int relation (Point p, Circle a) {//点和圆的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:138:5: note:                 'int relation(Point, Line)'
  138 | int relation (Point p, Line l) {//点和直线的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp: In function 'double area_circle(Circle, Circle)':
0_0_38662095_193.cpp:388:15: error: reference to 'relation' is ambiguous
  388 |     int rel = relation (a, v);
      |               ^~~~~~~~
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_38662095_193.cpp:253:5: note:                 'int relation(Circle, Circle)'
  253 | int relation (Circle a, Circle v) {//两圆的位置关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:246:5: note:                 'int relation(Line, Circle)'
  246 | int relation (Line a, Circle b) {//直线和圆的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:239:5: note:                 'int relation(Point, Circle)'
  239 | int relation (Point p, Circle a) {//点和圆的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:138:5: note:                 'int relation(Point, Line)'
  138 | int relation (Point p, Line l) {//点和直线的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp: In function 'double circle_traingle_area(Point, Point, Circle)':
0_0_38662095_193.cpp:419:13: error: reference to 'relation' is ambiguous
  419 |         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_38662095_193.cpp:253:5: note:                 'int relation(Circle, Circle)'
  253 | int relation (Circle a, Circle v) {//两圆的位置关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:246:5: note:                 'int relation(Line, Circle)'
  246 | int relation (Line a, Circle b) {//直线和圆的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:239:5: note:                 'int relation(Point, Circle)'
  239 | int relation (Point p, Circle a) {//点和圆的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:138:5: note:                 'int relation(Point, Line)'
  138 | int relation (Point p, Line l) {//点和直线的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:419:40: error: reference to 'relation' is ambiguous
  419 |         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_38662095_193.cpp:253:5: note:                 'int relation(Circle, Circle)'
  253 | int relation (Circle a, Circle v) {//两圆的位置关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:246:5: note:                 'int relation(Line, Circle)'
  246 | int relation (Line a, Circle b) {//直线和圆的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:239:5: note:                 'int relation(Point, Circle)'
  239 | int relation (Point p, Circle a) {//点和圆的关系
      |     ^~~~~~~~
0_0_38662095_193.cpp:138:5: note:                 'int relation(Point, Line)'
  138 | int relation (Point p, Line l) {//点和直线的关系
      |     ^~~~~~~~


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 12:50:23, Gzip enabled