0_0_26237544_806.cpp: In function 'double dis(Point, Point)':
0_0_26237544_806.cpp:22:63: 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_26237544_806.cpp: In function 'int main()':
0_0_26237544_806.cpp:68:86: error: 'fabs' was not declared in this scope
if (fabs((p[b].y - p[a].y)*(p[c].x - p[b].x) - (p[c].y - p[b].y)*(p[b].x - p[a].x)) <= 1e-6)continue;
^
0_0_26237544_806.cpp:78:40: error: call of overloaded 'abs(double)' is ambiguous
if (abs(dis(p[i], q) - dis(p[a], q)) <= 1e-6)sum++;
^
0_0_26237544_806.cpp:78:40: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:72:0,
from 0_0_26237544_806.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:329:15: note: int abs(int)
int __cdecl abs(int _X);
^
In file included from 0_0_26237544_806.cpp:3:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:174:3: note: long long int std::abs(long long int)
abs(long long __x) { return __builtin_llabs (__x); }
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:166:3: note: long int std::abs(long int)
abs(long __i) { return __builtin_labs(__i); }
^
|