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