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_37240520_23800.cpp: In function 'point get(point, point, point)':
0_0_37240520_23800.cpp:16:12: error: declaration of 'double a' shadows a parameter
     double a = 2 * (p.x - q.x);
            ^
0_0_37240520_23800.cpp:16:23: error: request for member 'x' in 'p', which is of non-class type 'point [100005]'
     double a = 2 * (p.x - q.x);
                       ^
0_0_37240520_23800.cpp:16:27: error: 'q' was not declared in this scope
     double a = 2 * (p.x - q.x);
                           ^
0_0_37240520_23800.cpp:17:12: error: declaration of 'double b' shadows a parameter
     double b = 2 * (p.y - q.y);
            ^
0_0_37240520_23800.cpp:17:23: error: request for member 'y' in 'p', which is of non-class type 'point [100005]'
     double b = 2 * (p.y - q.y);
                       ^
0_0_37240520_23800.cpp:18:12: error: declaration of 'double c' shadows a parameter
     double c = p.x * p.x + p.y * p.y - q.x * q.x - q.y * q.y;
            ^
0_0_37240520_23800.cpp:18:18: error: request for member 'x' in 'p', which is of non-class type 'point [100005]'
     double c = p.x * p.x + p.y * p.y - q.x * q.x - q.y * q.y;
                  ^
0_0_37240520_23800.cpp:18:24: error: request for member 'x' in 'p', which is of non-class type 'point [100005]'
     double c = p.x * p.x + p.y * p.y - q.x * q.x - q.y * q.y;
                        ^
0_0_37240520_23800.cpp:18:30: error: request for member 'y' in 'p', which is of non-class type 'point [100005]'
     double c = p.x * p.x + p.y * p.y - q.x * q.x - q.y * q.y;
                              ^
0_0_37240520_23800.cpp:18:36: error: request for member 'y' in 'p', which is of non-class type 'point [100005]'
     double c = p.x * p.x + p.y * p.y - q.x * q.x - q.y * q.y;
                                    ^
0_0_37240520_23800.cpp:19:23: error: request for member 'x' in 'p', which is of non-class type 'point [100005]'
     double d = 2 * (p.x - r.x);
                       ^
0_0_37240520_23800.cpp:19:27: error: 'r' was not declared in this scope
     double d = 2 * (p.x - r.x);
                           ^
0_0_37240520_23800.cpp:20:23: error: request for member 'y' in 'p', which is of non-class type 'point [100005]'
     double e = 2 * (p.y - r.y);
                       ^
0_0_37240520_23800.cpp:21:18: error: request for member 'x' in 'p', which is of non-class type 'point [100005]'
     double f = p.x * p.x + p.y * p.y - r.x * r.x - r.y * r.y;
                  ^
0_0_37240520_23800.cpp:21:24: error: request for member 'x' in 'p', which is of non-class type 'point [100005]'
     double f = p.x * p.x + p.y * p.y - r.x * r.x - r.y * r.y;
                        ^
0_0_37240520_23800.cpp:21:30: error: request for member 'y' in 'p', which is of non-class type 'point [100005]'
     double f = p.x * p.x + p.y * p.y - r.x * r.x - r.y * r.y;
                              ^
0_0_37240520_23800.cpp:21:36: error: request for member 'y' in 'p', which is of non-class type 'point [100005]'
     double f = p.x * p.x + p.y * p.y - r.x * r.x - r.y * r.y;
                                    ^
0_0_37240520_23800.cpp:23:11: error: conflicting declaration 'point d'
     point d;
           ^
0_0_37240520_23800.cpp:19:12: note: previous declaration as 'double d'
     double d = 2 * (p.x - r.x);
            ^
0_0_37240520_23800.cpp:24:7: error: request for member 'x' in 'd', which is of non-class type 'double'
     d.x = (c*e-f*b)/g;
       ^
0_0_37240520_23800.cpp:25:7: error: request for member 'y' in 'd', which is of non-class type 'double'
     d.y = (a*f-d*c)/g;
       ^
0_0_37240520_23800.cpp:26:12: error: could not convert 'd' from 'double' to 'point'
     return d;
            ^


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-29 20:53:36, Gzip enabled