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_20995449_2884.cpp:11:2: error: 'Circle' does not name a type
  Circle cir;
  ^
0_0_20995449_2884.cpp:14:2: error: 'Point' does not name a type
  Point p[MAXN];
  ^
0_0_20995449_2884.cpp:17:39: error: expected ')' before 'cir'
  GetCirclePolyIntersectionArea(Circle cir):cir(cir){
                                       ^
0_0_20995449_2884.cpp:22:13: error: 'Point' has not been declared
  void solve(Point tp[],int n){
             ^
0_0_20995449_2884.cpp: In member function 'void GetCirclePolyIntersectionArea::solve(int*, int)':
0_0_20995449_2884.cpp:24:13: error: 'p' was not declared in this scope
             p[tail++]=tp[i];//p[]是囊括了圆和多边形交点的点集,也是按顺时针或者逆时针排序的
             ^
0_0_20995449_2884.cpp:25:13: error: 'Line' was not declared in this scope
             Line line = Line(tp[i],tp[(i+1)%n] - tp[i]);
             ^
0_0_20995449_2884.cpp:27:4: error: 'vector' was not declared in this scope
    vector<Point > sol;
    ^
0_0_20995449_2884.cpp:27:11: error: 'Point' was not declared in this scope
    vector<Point > sol;
           ^
0_0_20995449_2884.cpp:27:19: error: 'sol' was not declared in this scope
    vector<Point > sol;
                   ^
0_0_20995449_2884.cpp:29:39: error: 'line' was not declared in this scope
             getLineCircleIntersection(line , cir , t1,t2,sol);
                                       ^
0_0_20995449_2884.cpp:29:46: error: 'cir' was not declared in this scope
             getLineCircleIntersection(line , cir , t1,t2,sol);
                                              ^
0_0_20995449_2884.cpp:29:61: error: 'getLineCircleIntersection' was not declared in this scope
             getLineCircleIntersection(line , cir , t1,t2,sol);
                                                             ^
0_0_20995449_2884.cpp:37:13: error: 'Point' was not declared in this scope
             Point O = cir.c;
             ^
0_0_20995449_2884.cpp:38:32: error: 'p' was not declared in this scope
             double ang = Angle(p[(i+1)%tail]-O , p[i]-O);
                                ^
0_0_20995449_2884.cpp:38:46: error: 'O' was not declared in this scope
             double ang = Angle(p[(i+1)%tail]-O , p[i]-O);
                                              ^
0_0_20995449_2884.cpp:38:56: error: 'Angle' was not declared in this scope
             double ang = Angle(p[(i+1)%tail]-O , p[i]-O);
                                                        ^
0_0_20995449_2884.cpp:39:54: error: 'Cross' was not declared in this scope
             if( dcmp( Cross( p[i]-O , p[(i+1)%tail]-O)) > 0 ) ang*=1;
                                                      ^
0_0_20995449_2884.cpp:39:55: error: 'dcmp' was not declared in this scope
             if( dcmp( Cross( p[i]-O , p[(i+1)%tail]-O)) > 0 ) ang*=1;
                                                       ^
0_0_20995449_2884.cpp:41:35: error: 'PI' was not declared in this scope
             double Sshan = ang/(2*PI)*Scir;
                                   ^
0_0_20995449_2884.cpp:42:58: error: 'Area' was not declared in this scope
             double Strian = Area(O , p[i] ,p[(i+1)%tail] );
                                                          ^
0_0_20995449_2884.cpp:43:31: error: 'abs' was not declared in this scope
             if(dcmp( abs(Sshan) - abs(Strian))<=0  ){
                               ^
0_0_20995449_2884.cpp:43:46: error: 'dcmp' was not declared in this scope
             if(dcmp( abs(Sshan) - abs(Strian))<=0  ){
                                              ^
0_0_20995449_2884.cpp:47:35: error: 'Cas' was not declared in this scope
         printf("Case %d: %.10f\n",Cas++,abs(res));//.10f
                                   ^
0_0_20995449_2884.cpp:47:48: error: 'abs' was not declared in this scope
         printf("Case %d: %.10f\n",Cas++,abs(res));//.10f
                                                ^
0_0_20995449_2884.cpp:47:49: error: 'printf' was not declared in this scope
         printf("Case %d: %.10f\n",Cas++,abs(res));//.10f
                                                 ^
0_0_20995449_2884.cpp: At global scope:
0_0_20995449_2884.cpp:179:8: error: redefinition of 'struct GetCirclePolyIntersectionArea'
 struct GetCirclePolyIntersectionArea{
        ^
0_0_20995449_2884.cpp:10:8: error: previous definition of 'struct GetCirclePolyIntersectionArea'
 struct GetCirclePolyIntersectionArea{
        ^
0_0_20995449_2884.cpp: In function 'int main()':
0_0_20995449_2884.cpp:239:76: error: no matching function for call to 'GetCirclePolyIntersectionArea::GetCirclePolyIntersectionArea(Circle&)'
         GetCirclePolyIntersectionArea gcp=GetCirclePolyIntersectionArea(cir);
                                                                            ^
0_0_20995449_2884.cpp:239:76: note: candidates are:
0_0_20995449_2884.cpp:16:2: note: GetCirclePolyIntersectionArea::GetCirclePolyIntersectionArea()
  GetCirclePolyIntersectionArea(){tail=0;}
  ^
0_0_20995449_2884.cpp:16:2: note:   candidate expects 0 arguments, 1 provided
0_0_20995449_2884.cpp:10:8: note: constexpr GetCirclePolyIntersectionArea::GetCirclePolyIntersectionArea(const GetCirclePolyIntersectionArea&)
 struct GetCirclePolyIntersectionArea{
        ^
0_0_20995449_2884.cpp:10:8: note:   no known conversion for argument 1 from 'Circle' to 'const GetCirclePolyIntersectionArea&'
0_0_20995449_2884.cpp:10:8: note: constexpr GetCirclePolyIntersectionArea::GetCirclePolyIntersectionArea(GetCirclePolyIntersectionArea&&)
0_0_20995449_2884.cpp:10:8: note:   no known conversion for argument 1 from 'Circle' to 'GetCirclePolyIntersectionArea&&'
0_0_20995449_2884.cpp:240:23: error: no matching function for call to 'GetCirclePolyIntersectionArea::solve(Point [1111], int&)'
         gcp.solve(tp,n);
                       ^
0_0_20995449_2884.cpp:240:23: note: candidate is:
0_0_20995449_2884.cpp:22:7: note: void GetCirclePolyIntersectionArea::solve(int*, int)
  void solve(Point tp[],int n){
       ^
0_0_20995449_2884.cpp:22:7: note:   no known conversion for argument 1 from 'Point [1111]' to 'int*'


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-17 02:01:22, Gzip enabled