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_25060790_3608.cpp: In function 'double dis(const Point&, const Point&)':
0_0_25060790_3608.cpp:29:70: error: 'sqrt' was not declared in this scope
     return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));  
                                                                      ^
0_0_25060790_3608.cpp: In function 'bool parallel(const Line&, const Line&)':
0_0_25060790_3608.cpp:43:44: error: 'ZERO' was not declared in this scope
     return ZERO((a.v - a.u).xMul(b.v - b.u));  
                                            ^
0_0_25060790_3608.cpp: In function 'void init()':
0_0_25060790_3608.cpp:78:50: error: 'min' was not declared in this scope
             if (l < r) to[i][0] = min(to[i][0], l);  
                                                  ^
0_0_25060790_3608.cpp:79:44: error: 'min' was not declared in this scope
             else to[i][1] = min(to[i][1], r);  
                                            ^
0_0_25060790_3608.cpp: In function 'double DP(int, int)':
0_0_25060790_3608.cpp:93:47: error: 'min' was not declared in this scope
         if(lx[k][i-1]) ll = min(ll, dd[k][i-1]);//如果k这头与i-1这条线段有交点  
                                               ^
0_0_25060790_3608.cpp:94:37: error: 'min' was not declared in this scope
         else rr = min(rr, dd[k][i-1]);  
                                     ^
0_0_25060790_3608.cpp:95:44: error: 'min' was not declared in this scope
         if (lx[k][j]) ll = min(ll, dd[k][j]);  
                                            ^
0_0_25060790_3608.cpp:96:35: error: 'min' was not declared in this scope
         else rr = min(rr, dd[k][j]);  
                                   ^
0_0_25060790_3608.cpp:98:68: error: 'min' was not declared in this scope
         ans = min(ans, DP(i, k) + DP(k+1, j) + ll + rr + line[k].w );  
                                                                    ^
0_0_25060790_3608.cpp: In function 'int main()':
0_0_25060790_3608.cpp:104:39: error: 'scanf' was not declared in this scope
     while(scanf("%d%lf%lf", &n, &a, &b)!=EOF){  
                                       ^
0_0_25060790_3608.cpp:104:42: error: 'EOF' was not declared in this scope
     while(scanf("%d%lf%lf", &n, &a, &b)!=EOF){  
                                          ^
0_0_25060790_3608.cpp:111:35: error: 'memset' was not declared in this scope
         memset(vis, 0, sizeof(vis));  
                                   ^
0_0_25060790_3608.cpp:114:90: error: 'min' was not declared in this scope
             ans = min(ans, DP(i, i + n - 1) + to[i - 1][0] + to[i - 1][1] + line[i - 1].w);  
                                                                                          ^
0_0_25060790_3608.cpp:116:28: error: 'printf' was not declared in this scope
         printf("%lf\n", ans);  
                            ^


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-23 06:08:29, Gzip enabled