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_13721671_12488.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13721671_12488.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13721671_12488.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_13721671_12488.cpp: In function 'double Min(double, double)':
0_0_13721671_12488.cpp:14:1: error: expected ';' before '}' token
 }
 ^
0_0_13721671_12488.cpp: In function 'double dis(Point, Point)':
0_0_13721671_12488.cpp:18:56: error: 'sqrt' was not declared in this scope
     return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
                                                        ^
0_0_13721671_12488.cpp: In function 'bool cmp_y(int, int)':
0_0_13721671_12488.cpp:24:1: error: expected ';' before '}' token
 }
 ^
0_0_13721671_12488.cpp: In function 'bool cmp_x(Point, Point)':
0_0_13721671_12488.cpp:28:1: error: expected ';' before '}' token
 }
 ^
0_0_13721671_12488.cpp: In function 'double close_pair(int, int)':
0_0_13721671_12488.cpp:36:18: error: expected ',' or ';' before numeric constant
     int mid=(l+r)1;
                  ^
0_0_13721671_12488.cpp:42:9: error: expected ';' before 'if'
         if(  p[i].x=p[mid].x-ans && p[i].x
         ^
0_0_13721671_12488.cpp:42:9: error: expected primary-expression before 'if'
0_0_13721671_12488.cpp:42:9: error: expected ')' before 'if'
0_0_13721671_12488.cpp:43:13: error: expected ')' before 'arr'
             arr[cnt++]=i;
             ^
0_0_13721671_12488.cpp:45:27: error: 'sort' was not declared in this scope
     sort(arr,arr+cnt,cmp_y);
                           ^
0_0_13721671_12488.cpp:47:9: error: expected ';' before 'for'
         for(j=i+1; j
         ^
0_0_13721671_12488.cpp:47:9: error: expected primary-expression before 'for'
0_0_13721671_12488.cpp:47:9: error: expected ')' before 'for'
0_0_13721671_12488.cpp:48:9: error: expected ';' before '{' token
         {
         ^
0_0_13721671_12488.cpp:48:9: error: expected primary-expression before '{' token
0_0_13721671_12488.cpp:48:9: error: expected ')' before '{' token
0_0_13721671_12488.cpp:49:39: error: lvalue required as left operand of assignment
             if(p[arr[j]].y-p[arr[i]].y=ans) break;
                                       ^
0_0_13721671_12488.cpp: In function 'int main()':
0_0_13721671_12488.cpp:59:25: error: 'scanf' was not declared in this scope
     while( scanf("%d",&n)!=EOF && n)
                         ^
0_0_13721671_12488.cpp:59:28: error: 'EOF' was not declared in this scope
     while( scanf("%d",&n)!=EOF && n)
                            ^
0_0_13721671_12488.cpp:62:13: error: expected ';' before 'scanf'
             scanf("%lf%lf",&p[i].x,&p[i].y);
             ^
0_0_13721671_12488.cpp:62:44: error: expected ')' before ';' token
             scanf("%lf%lf",&p[i].x,&p[i].y);
                                            ^
0_0_13721671_12488.cpp:64:25: error: 'sort' was not declared in this scope
         sort(p,p+n,cmp_x);
                         ^
0_0_13721671_12488.cpp:65:47: error: 'printf' was not declared in this scope
         printf("%.2lf\n",close_pair(0,n-1)/2.0);
                                               ^


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-12-01 18:03:58, Gzip enabled