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_38998357_7286.c:5:5: error: 'MAXN' undeclared here (not in a function)
    5 | } p[MAXN],q[MAXN];
      |     ^~~~
0_0_38998357_7286.c:6:1: error: unknown type name 'point'; use 'struct' keyword to refer to the type
    6 | point make_point(double x,double y,int id) {//初始化
      | ^~~~~
      | struct 
0_0_38998357_7286.c: In function 'make_point':
0_0_38998357_7286.c:7:5: error: unknown type name 'point'; use 'struct' keyword to refer to the type
    7 |     point tmp;
      |     ^~~~~
      |     struct 
0_0_38998357_7286.c:8:8: error: request for member 'x' in something not a structure or union
    8 |     tmp.x=x;
      |        ^
0_0_38998357_7286.c:9:8: error: request for member 'y' in something not a structure or union
    9 |     tmp.y=y;
      |        ^
0_0_38998357_7286.c:10:8: error: request for member 'id' in something not a structure or union
   10 |     tmp.id=id;
      |        ^
0_0_38998357_7286.c: At top level:
0_0_38998357_7286.c:13:12: error: unknown type name 'point'; did you mean 'int'?
   13 | void input(point* a) {//输入
      |            ^~~~~
      |            int
0_0_38998357_7286.c:16:15: error: unknown type name 'point'; did you mean 'int'?
   16 | double getdis(point a,point b) {//两点之间距离公式
      |               ^~~~~
      |               int
0_0_38998357_7286.c:16:23: error: unknown type name 'point'; did you mean 'int'?
   16 | double getdis(point a,point b) {//两点之间距离公式
      |                       ^~~~~
      |                       int


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-05-20 02:56:30, Gzip enabled