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_22788887_15532.cpp:19:27: error: two or more data types in declaration of 'zero'
 inline bool int zero(int x) { return fabs(x) < eps; }
                           ^
0_0_22788887_15532.cpp: In member function 'bool point::operator==(point&)':
0_0_22788887_15532.cpp:26:52: error: 'zero' was not declared in this scope
     bool operator==(point& b) { return zero(x - b.x) && zero(y - b.y); }
                                                    ^
0_0_22788887_15532.cpp: In function 'bool judge(point, point, point)':
0_0_22788887_15532.cpp:42:18: error: 'zero' was not declared in this scope
     return zero(d);
                  ^
0_0_22788887_15532.cpp: In function 'bool check(double, point, int)':
0_0_22788887_15532.cpp:49:35: error: 'zero' was not declared in this scope
         if (zero(dist(P[i], o) - r)) cnt++;
                                   ^


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-25 16:05:30, Gzip enabled