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_28015752_28859.cpp:50:5: error: reference to 'vector' is ambiguous
     vector operator - (const point& a) const { return vector(x - a.x, y - a.y); }
     ^
0_0_28015752_28859.cpp:27:7: note: candidates are: class vector
 class vector
       ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_28015752_28859.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note:                 template<class _Tp, class _Alloc> class std::vector
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^
0_0_28015752_28859.cpp:50:5: error: 'vector' does not name a type
     vector operator - (const point& a) const { return vector(x - a.x, y - a.y); }
     ^
0_0_28015752_28859.cpp:51:29: error: reference to 'vector' is ambiguous
     point operator + (const vector& a) const { return point(x + a.x, y + a.y); }
                             ^
0_0_28015752_28859.cpp:27:7: note: candidates are: class vector
 class vector
       ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_28015752_28859.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note:                 template<class _Tp, class _Alloc> class std::vector
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^
0_0_28015752_28859.cpp:51:29: error: 'vector' does not name a type
     point operator + (const vector& a) const { return point(x + a.x, y + a.y); }
                             ^
0_0_28015752_28859.cpp: In member function 'point point::operator+(const int&) const':
0_0_28015752_28859.cpp:51:67: error: request for member 'x' in 'a', which is of non-class type 'const int'
     point operator + (const vector& a) const { return point(x + a.x, y + a.y); }
                                                                   ^
0_0_28015752_28859.cpp:51:76: error: request for member 'y' in 'a', which is of non-class type 'const int'
     point operator + (const vector& a) const { return point(x + a.x, y + a.y); }
                                                                            ^
0_0_28015752_28859.cpp: In member function 'point segment::intersect(const segment&) const':
0_0_28015752_28859.cpp:62:9: error: reference to 'vector' is ambiguous
         vector v1 = s.a - a, v2 = s.b - a, v3 = s.b - b, v4 = s.a - b;
         ^
0_0_28015752_28859.cpp:27:7: note: candidates are: class vector
 class vector
       ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_28015752_28859.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note:                 template<class _Tp, class _Alloc> class std::vector
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^
0_0_28015752_28859.cpp:63:21: error: 'v1' was not declared in this scope
         double s1 = v1 * v2, s2 = v3 * v4;
                     ^
0_0_28015752_28859.cpp:63:26: error: 'v2' was not declared in this scope
         double s1 = v1 * v2, s2 = v3 * v4;
                          ^
0_0_28015752_28859.cpp:64:26: error: 's2' was not declared in this scope
         double se = s1 + s2;
                          ^
0_0_28015752_28859.cpp: In member function 'point segment::pverti(const point&) const':
0_0_28015752_28859.cpp:70:9: error: reference to 'vector' is ambiguous
         vector t = (b - a).verti();
         ^
0_0_28015752_28859.cpp:27:7: note: candidates are: class vector
 class vector
       ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_28015752_28859.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note:                 template<class _Tp, class _Alloc> class std::vector
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^
0_0_28015752_28859.cpp:71:27: error: 't' was not declared in this scope
         segment uv(p, p + t);
                           ^
0_0_28015752_28859.cpp: In function 'double kuras_area(point, point)':
0_0_28015752_28859.cpp:90:21: error: no match for 'operator-' (operand types are 'point' and 'point')
     int sgn = fi((b - ori) * (a - ori));
                     ^
0_0_28015752_28859.cpp:90:21: 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++/algorithm:61,
                 from 0_0_28015752_28859.cpp:5:
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_28015752_28859.cpp:90:23: note:   'point' is not derived from 'const std::reverse_iterator<_Iterator>'
     int sgn = fi((b - ori) * (a - ori));
                       ^
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++/algorithm:61,
                 from 0_0_28015752_28859.cpp:5:
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_28015752_28859.cpp:90:23: note:   'point' is not derived from 'const std::reverse_iterator<_Iterator>'
     int sgn = fi((b - ori) * (a - ori));
                       ^
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++/algorithm:61,
                 from 0_0_28015752_28859.cpp:5:
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_28015752_28859.cpp:90:23: note:   'point' is not derived from 'const std::move_iterator<_Iterator>'
     int sgn = fi((b - ori) * (a - ori));
                       ^
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++/algorithm:61,
                 from 0_0_28015752_28859.cpp:5:
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_28015752_28859.cpp:90:23: note:   'point' is not derived from 'const std::move_iterator<_Iterator>'
     int sgn = fi((b - ori) * (a - ori));
                       ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
    


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 11:52:18, Gzip enabled