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