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_38550718_25106.cpp:4:3: error: expected constructor, destructor, or type conversion before 'double'
   double x1,x2,y1,y2,d,e;
   ^
0_0_38550718_25106.cpp:5:6: error: expected constructor, destructor, or type conversion before '(' token
 scanf("%lf",x1);
      ^
0_0_38550718_25106.cpp:6:6: error: expected constructor, destructor, or type conversion before '(' token
 scanf("%lf",y1);
      ^
0_0_38550718_25106.cpp:7:6: error: expected constructor, destructor, or type conversion before '(' token
 scanf("%lf",x2);
      ^
0_0_38550718_25106.cpp:8:6: error: expected constructor, destructor, or type conversion before '(' token
 scanf("%lf",y2);
      ^
0_0_38550718_25106.cpp:9:1: error: 'd' does not name a type
 d=pow(x1-x2,2)+pow(y1-y2,2);
 ^
0_0_38550718_25106.cpp:10:1: error: 'e' does not name a type
 e=sqrt(d);
 ^
0_0_38550718_25106.cpp:11:7: error: expected constructor, destructor, or type conversion before '(' token
 printf("%lf",&e);
       ^


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-11-17 04:24:56, Gzip enabled