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_15763728_11990.c:9:1: error: unknown type name 'Point'
 Point p[100005];
 ^
0_0_15763728_11990.c: In function 'cmp':
0_0_15763728_11990.c:12:7: error: 'Point' undeclared (first use in this function)
 if((*(Point *)a).y==(*(Point *)b).y)
       ^
0_0_15763728_11990.c:12:7: note: each undeclared identifier is reported only once for each function it appears in
0_0_15763728_11990.c:12:14: error: expected expression before ')' token
 if((*(Point *)a).y==(*(Point *)b).y)
              ^
0_0_15763728_11990.c:12:31: error: expected expression before ')' token
 if((*(Point *)a).y==(*(Point *)b).y)
                               ^
0_0_15763728_11990.c:13:21: error: expected expression before ')' token
    return (*(Point *)b).x>(*(Point *)a).x?-1:1;
                     ^
0_0_15763728_11990.c:13:37: error: expected expression before ')' token
    return (*(Point *)b).x>(*(Point *)a).x?-1:1;
                                     ^
0_0_15763728_11990.c:14:22: error: expected expression before ')' token
     return (*(Point *)b).y>(*(Point *)a).y?-1:1;
                      ^
0_0_15763728_11990.c:14:38: error: expected expression before ')' token
     return (*(Point *)b).y>(*(Point *)a).y?-1:1;
                                      ^
0_0_15763728_11990.c: In function 'cmp1':
0_0_15763728_11990.c:18:7: error: 'Point' undeclared (first use in this function)
 if((*(Point *)a).x==(*(Point *)b).x)
       ^
0_0_15763728_11990.c:18:14: error: expected expression before ')' token
 if((*(Point *)a).x==(*(Point *)b).x)
              ^
0_0_15763728_11990.c:18:31: error: expected expression before ')' token
 if((*(Point *)a).x==(*(Point *)b).x)
                               ^
0_0_15763728_11990.c:19:22: error: expected expression before ')' token
     return (*(Point *)b).y>(*(Point *)a).y?-1:1;
                      ^
0_0_15763728_11990.c:19:38: error: expected expression before ')' token
     return (*(Point *)b).y>(*(Point *)a).y?-1:1;
                                      ^
0_0_15763728_11990.c:20:22: error: expected expression before ')' token
     return (*(Point *)b).x>(*(Point *)a).x?-1:1;
                      ^
0_0_15763728_11990.c:20:38: error: expected expression before ')' token
     return (*(Point *)b).x>(*(Point *)a).x?-1:1;
                                      ^
0_0_15763728_11990.c: In function 'main':
0_0_15763728_11990.c:26:5: error: stray '\' in program
     while(scanf(\"%d\",&n)!=EOF&&n)
     ^
0_0_15763728_11990.c:26:5: error: missing terminating " character
0_0_15763728_11990.c:27:5: error: expected expression before '{' token
     {
     ^
0_0_15763728_11990.c:30:13: error: stray '\' in program
             scanf(\"%lf%lf\",&p[i].x,&p[i].y);
             ^
0_0_15763728_11990.c:30:13: error: missing terminating " character
0_0_15763728_11990.c:53:9: error: stray '\' in program
         printf(\"%.2lf\\n\",s);
         ^
0_0_15763728_11990.c:53:9: error: missing terminating " character
0_0_15763728_11990.c:56:1: error: expected declaration or statement 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-12-04 07:16:21, Gzip enabled