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_23173501_28859.cpp:6:16: error: expected unqualified-id before numeric constant
  struct Point  7 {
                ^
0_0_23173501_28859.cpp:8:3: error: 'point' does not name a type
  }point[Max];
   ^
0_0_23173501_28859.cpp: In function 'double juli(Point, Point)':
0_0_23173501_28859.cpp:10:20: error: 'a' has incomplete type
  double juli(Point a,Point b)
                    ^
0_0_23173501_28859.cpp:6:9: error: forward declaration of 'struct Point'
  struct Point  7 {
         ^
0_0_23173501_28859.cpp:10:28: error: 'b' has incomplete type
  double juli(Point a,Point b)
                            ^
0_0_23173501_28859.cpp:6:9: error: forward declaration of 'struct Point'
  struct Point  7 {
         ^
0_0_23173501_28859.cpp: In function 'void init()':
0_0_23173501_28859.cpp:21:26: error: 'point' was not declared in this scope
          scanf("%lf%lf",&point[i].x,&point[i].y);
                          ^
0_0_23173501_28859.cpp:24:35: error: 'point' was not declared in this scope
          map[i][j]=map[j][i]=juli(point[i],point[j]);
                                   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 23:36:22, Gzip enabled