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_35286962_6193.cpp:15:21: error: 'dist' declared as an 'inline' variable
 inline double dist( x1,int y1,int x2,int y2){
                     ^
0_0_35286962_6193.cpp:15:24: error: expected primary-expression before 'int'
 inline double dist( x1,int y1,int x2,int y2){
                        ^
0_0_35286962_6193.cpp:15:31: error: expected primary-expression before 'int'
 inline double dist( x1,int y1,int x2,int y2){
                               ^
0_0_35286962_6193.cpp:15:38: error: expected primary-expression before 'int'
 inline double dist( x1,int y1,int x2,int y2){
                                      ^
0_0_35286962_6193.cpp:15:44: error: expression list treated as compound expression in initializer [-fpermissive]
 inline double dist( x1,int y1,int x2,int y2){
                                            ^
0_0_35286962_6193.cpp:15:45: error: expected ',' or ';' before '{' token
 inline double dist( x1,int y1,int x2,int y2){
                                             ^
0_0_35286962_6193.cpp: In function 'double check(double)':
0_0_35286962_6193.cpp:22:31: error: 'dist' cannot be used as a function
     double d1=dist(x1,y1,x2,y2);
                               ^
0_0_35286962_6193.cpp:23:31: error: 'dist' cannot be used as a function
     double d2=dist(dx,dy,x2,y2);
                               ^
0_0_35286962_6193.cpp: In function 'double f(double)':
0_0_35286962_6193.cpp:39:28: error: 'dist' cannot be used as a function
     return dist(ax,ay,x1,y1)/p+check(lmid);
                            ^
0_0_35286962_6193.cpp: In function 'int main()':
0_0_35286962_6193.cpp:61:28: error: 'dist' cannot be used as a function
         ab=dist(ax,ay,bx,by);
                            ^
0_0_35286962_6193.cpp:62:28: error: 'dist' cannot be used as a function
         cd=dist(cx,cy,dx,dy);
                            ^


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-12-02 09:43:47, Gzip enabled