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_17202871_24155.cpp: In function 'int sig(double)':
0_0_17202871_24155.cpp:149:12: error: redefinition of 'int sig(double)'
 inline int sig(db x){return (x>eps)-(x<-eps); }
            ^
0_0_17202871_24155.cpp:9:12: note: 'int sig(double)' previously defined here
 inline int sig(db x){rt (x>eps)-(x<-eps); }
            ^
0_0_17202871_24155.cpp: At global scope:
0_0_17202871_24155.cpp:150:8: error: redefinition of 'struct node'
 struct node{
        ^
0_0_17202871_24155.cpp:10:8: error: previous definition of 'struct node'
 struct node{
        ^
0_0_17202871_24155.cpp: In member function 'int CCL::cp_L(node, node, node*)':
0_0_17202871_24155.cpp:170:16: error: no match for 'operator-' (operand types are 'node' and 'node')
         db A=(a-b).dis2(),B=-2.*((o-a)*(b-a)),C=(a-o).dis2()-r*r,D=B*B-4.*A*C;
                ^
0_0_17202871_24155.cpp:170:16: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17202871_24155.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:328:5: note: template<class _Iterator> typename std::reverse_iterator<_Iterator>::difference_type std::operator-(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
     operator-(const reverse_iterator<_Iterator>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:328:5: note:   template argument deduction/substitution failed:
0_0_17202871_24155.cpp:170:17: note:   'node' is not derived from 'const std::reverse_iterator<_Iterator>'
         db A=(a-b).dis2(),B=-2.*((o-a)*(b-a)),C=(a-o).dis2()-r*r,D=B*B-4.*A*C;
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17202871_24155.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:380:5: note: template<class _IteratorL, class _IteratorR> decltype ((__y.base() - __x.base())) std::operator-(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)
     operator-(const reverse_iterator<_IteratorL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:380:5: note:   template argument deduction/substitution failed:
0_0_17202871_24155.cpp:170:17: note:   'node' is not derived from 'const std::reverse_iterator<_Iterator>'
         db A=(a-b).dis2(),B=-2.*((o-a)*(b-a)),C=(a-o).dis2()-r*r,D=B*B-4.*A*C;
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17202871_24155.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1121:5: note: template<class _IteratorL, class _IteratorR> decltype ((__x.base() - __y.base())) std::operator-(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&)
     operator-(const move_iterator<_IteratorL>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1121:5: note:   template argument deduction/substitution failed:
0_0_17202871_24155.cpp:170:17: note:   'node' is not derived from 'const std::move_iterator<_Iterator>'
         db A=(a-b).dis2(),B=-2.*((o-a)*(b-a)),C=(a-o).dis2()-r*r,D=B*B-4.*A*C;
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17202871_24155.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1128:5: note: template<class _Iterator> decltype ((__x.base() - __y.base())) std::operator-(const std::move_iterator<_Iterator>&, const std::move_iterator<_Iterator>&)
     operator-(const move_iterator<_Iterator>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:1128:5: note:   template argument deduction/substitution failed:
0_0_17202871_24155.cpp:170:17: note:   'node' is not derived from 'const std::move_iterator<_Iterator>'
         db A=(a-b).dis2(),B=-2.*((o-a)*(b-a)),C=(a-o).dis2()-r*r,D=B*B-4.*A*C;
                 ^
0_0_17202871_24155.cpp:171:17: error: cannot convert 'node' to 'double' for argument '1' to 'int sig(double)'
         if(sig(D)<0)return 0;
                 ^
0_0_17202871_24155.cpp:172:17: error: no matching function for call to 'fabs(node&)'
         D=fabs(D);
                 ^
0_0_17202871_24155.cpp:172:17: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
                 from 0_0_17202871_24155.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:181:31: note: double fabs(double)
   __CRT_INLINE double __cdecl fabs (double x)
                               ^
GCC4.9.2/x86_64-w64-mingw32/include/math.h:181:31: note:   no known conversion for argument 1 from 'node' to 'double'
In file included from 0_0_17202871_24155.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:272:5: note: template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::fabs(_Tp)
     fabs(_Tp __x)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:272:5: note:   template argument deduction/substitution failed:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath: In substitution of 'template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::fabs(_Tp) [with _Tp = node]':
0_0_17202871_24155.cpp:172:17:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:272:5: error: no type named '__type' in 'struct __gnu_cxx::__enable_if<false, double>'
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:264:3: note: constexpr long double std::fabs(long double)
   fabs(long double __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:264:3: note:   no known conversion for argument 1 from 'node' to 'long double'
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:260:3: note: constexpr float std::fabs(float)
   fabs(float __x)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:260:3: note:   no known conversion for argument 1 from 'node' to 'float'
0_0_17202871_24155.cpp:173:16: error: no match for 'operator-' (operand type is 'node')
         db u1=(-B-sqrt(D))/(2.*A),u2=(-B+sqrt(D))/(2.*A);
                ^
0_0_17202871_24155.cpp:173:16: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17202871_24155.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:328:5: note: template<class _Iterator> typename std::reverse_iterator<_Iterator>::difference_type std::operator-(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
     operator-(const reverse_iterator<_Iterator>& __x,
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:328:5: note:   template argument deduction/substitution failed:
0_0_17202871_24155.cpp:173:17: note:   'node' is not derived from 'const std::reverse_iterator<_Iterator>'
         db u1=(-B-sqrt(D))/(2.*A),u2=(-B+sqrt(D))/(2.*A);
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:67:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_17202871_24155.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:380:5: note: template<class _IteratorL


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-30 05:43:35, Gzip enabled