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_34164808_31022.cpp:13:1: error: 'Point' does not name a type
 Point a[N],b[N],c[N];
 ^
0_0_34164808_31022.cpp:18:12: error: 'Point' has not been declared
 double dis(Point p,Point q)
            ^
0_0_34164808_31022.cpp:18:20: error: 'Point' has not been declared
 double dis(Point p,Point q)
                    ^
0_0_34164808_31022.cpp:23:11: error: 'Point' has not been declared
 int merge(Point p[],Point q[],int s,int m,int t)  
           ^
0_0_34164808_31022.cpp:23:21: error: 'Point' has not been declared
 int merge(Point p[],Point q[],int s,int m,int t)  
                     ^
0_0_34164808_31022.cpp:40:16: error: 'Point' has not been declared
 double closest(Point a[],Point b[],Point c[],int p,int q)
                ^
0_0_34164808_31022.cpp:40:26: error: 'Point' has not been declared
 double closest(Point a[],Point b[],Point c[],int p,int q)
                          ^
0_0_34164808_31022.cpp:40:36: error: 'Point' has not been declared
 double closest(Point a[],Point b[],Point c[],int p,int q)
                                    ^
0_0_34164808_31022.cpp:117:1: error: expected '}' at end of input
 }
 ^
0_0_34164808_31022.cpp: In member function 'double TYPE::dis(int, int)':
0_0_34164808_31022.cpp:20:17: error: request for member 'x' in 'p', which is of non-class type 'int'
     double x1=p.x-q.x,y1=p.y-q.y;
                 ^
0_0_34164808_31022.cpp:20:21: error: request for member 'x' in 'q', which is of non-class type 'int'
     double x1=p.x-q.x,y1=p.y-q.y;
                     ^
0_0_34164808_31022.cpp:21:23: error: 'y1' was not declared in this scope
     return sqrt(x1*x1+y1*y1);
                       ^
0_0_34164808_31022.cpp: In member function 'int TYPE::merge(int*, int*, int, int, int)':
0_0_34164808_31022.cpp:28:17: error: request for member 'y' in '*(q + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
         if(q[i].y>q[j].y)
                 ^
0_0_34164808_31022.cpp:28:24: error: request for member 'y' in '*(q + ((sizetype)(((long long unsigned int)j) * 4ull)))', which is of non-class type 'int'
         if(q[i].y>q[j].y)
                        ^
0_0_34164808_31022.cpp: In member function 'double TYPE::closest(int*, int*, int*, int, int)':
0_0_34164808_31022.cpp:60:17: error: request for member 'index' in '*(b + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
         if(b[i].index<=m)
                 ^
0_0_34164808_31022.cpp:69:22: error: request for member 'x' in '*(b + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
         if(fabs(b[i].x-b[m].x)<dm)
                      ^
0_0_34164808_31022.cpp:69:29: error: request for member 'x' in '*(b + ((sizetype)(((long long unsigned int)m) * 4ull)))', which is of non-class type 'int'
         if(fabs(b[i].x-b[m].x)<dm)
                             ^
0_0_34164808_31022.cpp:72:29: error: request for member 'y' in '*(c + ((sizetype)(((long long unsigned int)j) * 4ull)))', which is of non-class type 'int'
         for(j=i+1;j<k&&c[j].y-c[i].y<dm;j++)
                             ^
0_0_34164808_31022.cpp:72:36: error: request for member 'y' in '*(c + ((sizetype)(((long long unsigned int)i) * 4ull)))', which is of non-class type 'int'
         for(j=i+1;j<k&&c[j].y-c[i].y<dm;j++)
                                    ^
0_0_34164808_31022.cpp: In member function 'int TYPE::cmp_x(const void*, const void*)':
0_0_34164808_31022.cpp:82:19: error: 'Point' was not declared in this scope
     double temp=((Point*)p)->x-((Point*)q)->x;
                   ^
0_0_34164808_31022.cpp:82:25: error: expected primary-expression before ')' token
     double temp=((Point*)p)->x-((Point*)q)->x;
                         ^
0_0_34164808_31022.cpp:82:26: error: expected ')' before 'p'
     double temp=((Point*)p)->x-((Point*)q)->x;
                          ^
0_0_34164808_31022.cpp: In member function 'int TYPE::cmp_y(const void*, const void*)':
0_0_34164808_31022.cpp:92:19: error: 'Point' was not declared in this scope
     double temp=((Point*)p)->y-((Point*)q)->y;
                   ^
0_0_34164808_31022.cpp:92:25: error: expected primary-expression before ')' token
     double temp=((Point*)p)->y-((Point*)q)->y;
                         ^
0_0_34164808_31022.cpp:92:26: error: expected ')' before 'p'
     double temp=((Point*)p)->y-((Point*)q)->y;
                          ^
0_0_34164808_31022.cpp: In member function 'int TYPE::main()':
0_0_34164808_31022.cpp:107:31: error: 'a' was not declared in this scope
             scanf("%lf %lf",&(a[i].x),&(a[i].y));
                               ^
0_0_34164808_31022.cpp:108:15: error: 'a' was not declared in this scope
         qsort(a,n,sizeof(a[0]),cmp_x);
               ^
0_0_34164808_31022.cpp:111:16: error: 'b' was not declared in this scope
         memcpy(b,a,n*sizeof(a[0]));
                ^
0_0_34164808_31022.cpp:113:23: error: 'c' was not declared in this scope
         d=closest(a,b,c,0,n-1);        
                       ^
0_0_34164808_31022.cpp: At global scope:
0_0_34164808_31022.cpp:117:1: error: expected unqualified-id at end of input
 }
 ^


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-09-28 12:22:35, Gzip enabled