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_22739343_10082.c:4:1: error: expected identifier or '(' before '/' token
 //#define pii pair<int,int>
 ^
0_0_22739343_10082.c:4:3: error: stray '#' in program
 //#define pii pair<int,int>
   ^
0_0_22739343_10082.c:5:3: error: stray '#' in program
 //#define x first
   ^
0_0_22739343_10082.c:6:3: error: stray '#' in program
 //#define y second
   ^
0_0_22739343_10082.c:7:3: error: stray '#' in program
 //#define pb push_back
   ^
0_0_22739343_10082.c:8:3: error: stray '#' in program
 //#define mp make_pair
   ^
0_0_22739343_10082.c:21:5: error: expected specifier-qualifier-list before 'point'
     point(){}
     ^
0_0_22739343_10082.c:38:5: error: unknown type name 'point'
     point s,e;
     ^
0_0_22739343_10082.c:39:5: error: expected specifier-qualifier-list before 'line'
     line(){}
     ^
0_0_22739343_10082.c:42:1: error: unknown type name 'point'
 point ptl(point p,line l)
 ^
0_0_22739343_10082.c:42:11: error: unknown type name 'point'
 point ptl(point p,line l)
           ^
0_0_22739343_10082.c:42:19: error: unknown type name 'line'
 point ptl(point p,line l)
                   ^
0_0_22739343_10082.c:50:17: error: unknown type name 'point'
 __float128 dist(point a,point b)
                 ^
0_0_22739343_10082.c:50:25: error: unknown type name 'point'
 __float128 dist(point a,point b)
                         ^
0_0_22739343_10082.c:54:1: error: unknown type name 'bool'
 bool onseg(point p,line l)
 ^
0_0_22739343_10082.c:54:12: error: unknown type name 'point'
 bool onseg(point p,line l)
            ^
0_0_22739343_10082.c:54:20: error: unknown type name 'line'
 bool onseg(point p,line l)
                    ^
0_0_22739343_10082.c: In function 'main':
0_0_22739343_10082.c:75:1: error: expected expression before '/' token
 //        printf("%Qf %Qf %Qf\n",ox,oy,r);
 ^
0_0_22739343_10082.c:76:9: error: unknown type name 'point'
         point o=point(ox,oy);
         ^
0_0_22739343_10082.c:79:1: error: expected expression before '/' token
 //        printf("%Qf %Qf %Qf %Qf %Qf %Qf\n",ax,ay,vx,vy,bx,by);
 ^
0_0_22739343_10082.c:80:15: error: expected ';' before 'a'
         point a=point(ax,ay),b=point(bx,by);
               ^
0_0_22739343_10082.c:81:15: error: expected ';' before 'aa'
         point aa=point(ax+vx,ay+vy);
               ^
0_0_22739343_10082.c:82:15: error: expected ';' before 'tmp'
         point tmp=ptl(o,line(a,aa));
               ^
0_0_22739343_10082.c:84:17: error: 'tmp' undeclared (first use in this function)
         if(dist(tmp,o)+eps>r||((a.y-aa.y)*(a.y-tmp.y)<0||(a.x-aa.x)*(a.x-tmp.x)<0))
                 ^
0_0_22739343_10082.c:84:17: note: each undeclared identifier is reported only once for each function it appears in
0_0_22739343_10082.c:84:33: error: 'a' undeclared (first use in this function)
         if(dist(tmp,o)+eps>r||((a.y-aa.y)*(a.y-tmp.y)<0||(a.x-aa.x)*(a.x-tmp.x)<0))
                                 ^
0_0_22739343_10082.c:84:37: error: 'aa' undeclared (first use in this function)
         if(dist(tmp,o)+eps>r||((a.y-aa.y)*(a.y-tmp.y)<0||(a.x-aa.x)*(a.x-tmp.x)<0))
                                     ^
0_0_22739343_10082.c:86:32: error: 'b' undeclared (first use in this function)
             if((a.y-aa.y)*(a.x-b.x)==(a.y-b.y)*(a.x-aa.x))
                                ^
0_0_22739343_10082.c:94:1: error: expected expression before '/' token
 //        if((a.y-aa.y)*(a.y-tmp.y)<0||(a.x-aa.x)*(a.x-tmp.x)<0) {puts("No");continue;}
 ^
0_0_22739343_10082.c:96:9: error: 'tt' undeclared (first use in this function)
         tt=sqrtq(r*r-tt*tt);
         ^
0_0_22739343_10082.c:99:15: error: expected ';' before 'k'
         point k;
               ^
0_0_22739343_10082.c:100:9: error: 'k' undeclared (first use in this function)
         k.x=a.x+(tmp.x-a.x)*tt/ttt;
         ^
0_0_22739343_10082.c:104:1: error: expected expression before '/' token
 //            if((a.y-k.y)*(a.x-b.x)==(a.y-b.y)*(a.x-k.x))
 ^
0_0_22739343_10082.c:111:15: error: expected ';' before 'kk'
         point kk=ptl(a,line(k,o));
               ^
0_0_22739343_10082.c:112:15: error: expected ';' before 'c'
         point c;
               ^
0_0_22739343_10082.c:113:9: error: 'c' undeclared (first use in this function)
         c.x=2*kk.x-a.x;
         ^
0_0_22739343_10082.c:113:15: error: 'kk' undeclared (first use in this function)
         c.x=2*kk.x-a.x;
               ^
0_0_22739343_10082.c:115:1: error: expected expression before '/' token
 //        printf("%Qf %Qf\n",c.x,c.y);
 ^


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-05 07:34:52, Gzip enabled