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_19231168_18457.cpp:16:20: error: 'po' does not name a type
 double x,y;}point; po
                    ^
0_0_19231168_18457.cpp:18:12: error: 'po' does not name a type
 double ret;po
            ^
0_0_19231168_18457.cpp:20:13: error: 'po' was not declared in this scope
 double Dist(po
             ^
0_0_19231168_18457.cpp:21:7: error: 'po' was not declared in this scope
 int p,po
       ^
0_0_19231168_18457.cpp:22:6: error: expression list treated as compound expression in initializer [-fpermissive]
 int q){    return sqrt((p.x-q.x)*(p.x-q.x)+(p.y-q.y)*(p.y-q.y));} bool cmpx(po
      ^
0_0_19231168_18457.cpp:22:7: error: expected ',' or ';' before '{' token
 int q){    return sqrt((p.x-q.x)*(p.x-q.x)+(p.y-q.y)*(p.y-q.y));} bool cmpx(po
       ^
0_0_19231168_18457.cpp:22:77: error: 'po' was not declared in this scope
 int q){    return sqrt((p.x-q.x)*(p.x-q.x)+(p.y-q.y)*(p.y-q.y));} bool cmpx(po
                                                                             ^
0_0_19231168_18457.cpp:23:7: error: 'po' was not declared in this scope
 int p,po
       ^
0_0_19231168_18457.cpp:24:6: error: expression list treated as compound expression in initializer [-fpermissive]
 int q){    if (p.x!=q.x) return p.x<q.x;    return p.y<q.y;} bool cmpy(po
      ^
0_0_19231168_18457.cpp:24:7: error: expected ',' or ';' before '{' token
 int q){    if (p.x!=q.x) return p.x<q.x;    return p.y<q.y;} bool cmpy(po
       ^
0_0_19231168_18457.cpp:24:72: error: 'po' was not declared in this scope
 int q){    if (p.x!=q.x) return p.x<q.x;    return p.y<q.y;} bool cmpy(po
                                                                        ^
0_0_19231168_18457.cpp:25:7: error: 'po' was not declared in this scope
 int p,po
       ^
0_0_19231168_18457.cpp:26:6: error: expression list treated as compound expression in initializer [-fpermissive]
 int q){    if (p.y!=q.y) return p.y<q.y;    return p.x<q.x;} 
      ^
0_0_19231168_18457.cpp:26:7: error: expected ',' or ';' before '{' token
 int q){    if (p.y!=q.y) return p.y<q.y;    return p.x<q.x;} 
       ^
0_0_19231168_18457.cpp: In function 'void Merge(int, int)':
0_0_19231168_18457.cpp:32:135: error: 'a' was not declared in this scope
 double m;    if (r-l+1<=6)    {        for (i=l;i<=r;i++)        {            for (j=i+1;j<=r;j++)            {                m=Dist(a[i],a[j]);                if (m>ret/2) continue;                for (k=j+1;k<=r;k++)                {                    ret=min(ret,m+Dist(a[j],a[k])+Dist(a[i],a[k]));                }            }        }        return;    }    mid=(l+r)/2;    Merge(l,mid);    Merge(mid+1,r);    
                                                                                                                                       ^
0_0_19231168_18457.cpp:32:144: error: 'Dist' cannot be used as a function
 double m;    if (r-l+1<=6)    {        for (i=l;i<=r;i++)        {            for (j=i+1;j<=r;j++)            {                m=Dist(a[i],a[j]);                if (m>ret/2) continue;                for (k=j+1;k<=r;k++)                {                    ret=min(ret,m+Dist(a[j],a[k])+Dist(a[i],a[k]));                }            }        }        return;    }    mid=(l+r)/2;    Merge(l,mid);    Merge(mid+1,r);    
                                                                                                                                                ^
0_0_19231168_18457.cpp:32:285: error: 'Dist' cannot be used as a function
 double m;    if (r-l+1<=6)    {        for (i=l;i<=r;i++)        {            for (j=i+1;j<=r;j++)            {                m=Dist(a[i],a[j]);                if (m>ret/2) continue;                for (k=j+1;k<=r;k++)                {                    ret=min(ret,m+Dist(a[j],a[k])+Dist(a[i],a[k]));                }            }        }        return;    }    mid=(l+r)/2;    Merge(l,mid);    Merge(mid+1,r);    
                                                                                                                                                                                                                                                                                             ^
0_0_19231168_18457.cpp:32:301: error: 'Dist' cannot be used as a function
 double m;    if (r-l+1<=6)    {        for (i=l;i<=r;i++)        {            for (j=i+1;j<=r;j++)            {                m=Dist(a[i],a[j]);                if (m>ret/2) continue;                for (k=j+1;k<=r;k++)                {                    ret=min(ret,m+Dist(a[j],a[k])+Dist(a[i],a[k]));                }            }        }        return;    }    mid=(l+r)/2;    Merge(l,mid);    Merge(mid+1,r);    
                                                                                                                                                                                                                                                                                                             ^
0_0_19231168_18457.cpp:34:54: error: 'a' was not declared in this scope
 int up=0;    for (i=l;i<=r;i++)    {        if (fabs(a[mid].x-a[i].x)<ret/2) tag[up++]=a[i];    }    sort(tag,tag+up,cmpy);    for (i=0;i<up;i++)    {        for (j=i+1;j<up && j<=i+7;j++)        {            m=Dist(tag[i],tag[j]);            if (m>ret/2) continue;            for (k=j+1;k<up && k<=j+7;k++)            {                ret=min(ret,m+Dist(tag[j],tag[k])+Dist(tag[i],tag[k]));            }        }    }} 
                                                      ^
0_0_19231168_18457.cpp:34:78: error: 'tag' was not declared in this scope
 int up=0;    for (i=l;i<=r;i++)    {        if (fabs(a[mid].x-a[i].x)<ret/2) tag[up++]=a[i];    }    sort(tag,tag+up,cmpy);    for (i=0;i<up;i++)    {        for (j=i+1;j<up && j<=i+7;j++)        {            m=Dist(tag[i],tag[j]);            if (m>ret/2) continue;            for (k=j+1;k<up && k<=j+7;k++)            {                ret=min(ret,m+Dist(tag[j],tag[k])+Dist(tag[i],tag[k]));            }        }    }} 
                                                                              ^
0_0_19231168_18457.cpp:34:107: error: 'tag' was not declared in this scope
 int up=0;    for (i=l;i<=r;i++)    {        if (fabs(a[mid].x-a[i].x)<ret/2) tag[up++]=a[i];    }    sort(tag,tag+up,cmpy);    for (i=0;i<up;i++)    {        for (j=i+1;j<up && j<=i+7;j++)        {            m=Dist(tag[i],tag[j]);            if (m>ret/2) continue;            for (k=j+1;k<up && k<=j+7;k++)            {                ret=min(ret,m+Dist(tag[j],tag[k])+Dist(tag[i],tag[k]));            }        }    }} 
                                                                                                           ^
0_0_19231168_18457.cpp:34:230: error: 'Dist' cannot be used as a function
 int up=0;    for (i=l;i<=r;i++)    {        if (fabs(a[mid].x-a[i].x)<ret/2) tag[up++]=a[i];    }    sort(tag,tag+up,cmpy);    for (i=0;i<up;i++)    {        for (j=i+1;j<up && j<=i+7;j++)        {            m=Dist(tag[i],tag[j]);            if (m>ret/2) continue;            for (k=j+1;k<up && k<=j+7;k++)            {                ret=min(ret,m+Dist(tag[j],tag[k])+Dist(tag[i],tag[k]));            }        }    }} 
                                                                                                                                                                                                                                      ^
0_0_19231168_18457.cpp:34:369: error: 'Dist' cannot be used as a function
 int up=0;    for (i=l;i<=r;i++)    {        if (fabs(a[mid].x-a[i].x)<ret/2) tag[up++]=a[i];    }    sort(tag,tag+up,cmpy);    for (i=0;i<up;i++)    {        for (j=i+1;j<up && j<=i+7;j++)        {            m=Dist(tag[i],tag[j]);            if (m>ret/2) continue;            for (k=j+1;k<up && k<=j+7;k++)            {                ret=min(ret,m+Dist(tag[j],tag[k])+Dist(tag[i],tag[k]));            }        }    }} 
                                                                                                                                                                                                                                                                                                                                                                                 ^
0_0_19231168_18457.cpp:34:389: error: 'Dist' cannot be used as a function
 int up=0;    for (i=l;i<=r;i++)    {        if (fabs(a[mid].x-a[i].x)<ret/2) tag[up++]=a[i];    }    sort(tag,tag+up,cmpy);    for (i=0;i<up;i++)    {        for (j=i+1;j<up && j<=i+7;j++)        {            m=Dist(tag[i],tag[j]);            if (m>ret/2) continue;            for (k=j+1;k<up && k<=j+7;k++)            {                ret=min(ret,m+Dist(tag[j],tag[k])+Dist(tag[i],tag[k]));            }        }    }} 
                                                                                                                                                                                                                                                                                                                                                                                                     ^
0_0_19231168_18457.cpp: In function 'int main()':
0_0_19231168_18457.cpp:38:136: error: 'a' was not declared in this scope
 int i,j,n,T;    scanf("%d",&T);    while(T--)    {        scanf("%d",&n);        for (i=0;i<n;i++)        {            scanf("%lf%lf",&a[i].x,&a[i].y);        }        sort(a,a+n,cmpx);        ret=999999999;        Merge(0,n-1);        printf("%.3lf\n",ret);    }    return 0;}
                                                                                                                                        ^
0_0_19231168_18457.cpp:38:174: error: 'a' was not declared in this scope
 int i,j,n,T;    scanf("%d",&T);    while(T--)    {        scanf("%d",&n);        for (i=0;i<n;i++)        {            scanf("


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-27 08:15:24, Gzip enabled