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_16972633_5035.cpp: In function 'int sign(double)':
0_0_16972633_5035.cpp:13:14: error: 'EPS' was not declared in this scope
  return a < -EPS ? -1 : a > EPS;
              ^
0_0_16972633_5035.cpp: In member function 'void Point3::addNoise()':
0_0_16972633_5035.cpp:46:80: error: return-statement with a value, in function returning 'void' [-fpermissive]
     void addNoise() { return Point3(x + randEps(), y + randEps(), z + randEps()); }
                                                                                ^
0_0_16972633_5035.cpp: In function 'double calcDis(Point3*, Point3, Plane)':
0_0_16972633_5035.cpp:119:48: error: 'Dot' was not declared in this scope
     return fabs(Dot(pp - p[f.v[0]], f.normal(p))) / f.normal(p).len();
                                                ^
0_0_16972633_5035.cpp:119:65: error: 'struct Point3' has no member named 'len'
     return fabs(Dot(pp - p[f.v[0]], f.normal(p))) / f.normal(p).len();
                                                                 ^
0_0_16972633_5035.cpp: In function 'int main()':
0_0_16972633_5035.cpp:148:33: error: 'addNoise' was not declared in this scope
             p[i] = addNoise(p[i]); 
                                 ^


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-16 13:58:49, Gzip enabled