Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_645_3130_9166.cpp: In function 'void calc(double, double, double, std::vector<double>&)':
1_645_3130_9166.cpp:11:17: error: 'sign' was not declared in this scope
     if (sign(det) < 0) return ;
                 ^
1_645_3130_9166.cpp:13:17: error: 'sign' was not declared in this scope
     if (sign(det) == 0) return ;
                 ^
1_645_3130_9166.cpp: In function 'int OK(int, int, double)':
1_645_3130_9166.cpp:22:20: error: 'V1' was not declared in this scope
     double t = l / V1;
                    ^
1_645_3130_9166.cpp:24:21: error: 'tim' was not declared in this scope
         double tb = tim + (300 * (i - whe) - X) / V2;
                     ^
1_645_3130_9166.cpp:24:51: error: 'V2' was not declared in this scope
         double tb = tim + (300 * (i - whe) - X) / V2;
                                                   ^
1_645_3130_9166.cpp:26:25: error: 'sign' was not declared in this scope
         if (sign(ta - tb) <= 0) {
                         ^
1_645_3130_9166.cpp: In function 'int check(int, int)':
1_645_3130_9166.cpp:37:34: error: 'V1' was not declared in this scope
     double t = (A - 1) * 300.0 / V1;
                                  ^
1_645_3130_9166.cpp:39:25: error: 'V2' was not declared in this scope
         t = A * 300.0 / V2 - t;
                         ^
1_645_3130_9166.cpp:50:30: error: 'sign' was not declared in this scope
             if (sign(x[i] - 0) >= 0 && sign(x[i] - 300) <= 0) {
                              ^
1_645_3130_9166.cpp:57:31: error: 'V2' was not declared in this scope
         t = (A + 1) * 300.0 / V2 - t;
                               ^
1_645_3130_9166.cpp:68:30: error: 'sign' was not declared in this scope
             if (sign(x[i] - 0) >= 0 && sign(x[i] - 300) <= 0) {
                              ^
1_645_3130_9166.cpp: In function 'void work(int)':
1_645_3130_9166.cpp:81:25: error: 'tim' was not declared in this scope
     scanf("%lf%lf%lf", &tim, &V1, &V2);
                         ^
1_645_3130_9166.cpp:81:31: error: 'V1' was not declared in this scope
     scanf("%lf%lf%lf", &tim, &V1, &V2);
                               ^
1_645_3130_9166.cpp:81:36: error: 'V2' was not declared in this scope
     scanf("%lf%lf%lf", &tim, &V1, &V2);
                                    ^


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-06-17 08:55:48, Gzip enabled