0_0_26577902_4027.cpp:19:1: error: reference to 'vector' is ambiguous
vector operator + (vector a, vector b) {return vector (a.x + b.x, a.y + b.y);}
^
0_0_26577902_4027.cpp:16:10: note: candidates are: typedef struct node vector
} point, 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_26577902_4027.cpp:3:
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_26577902_4027.cpp:19:1: error: 'vector' does not name a type
vector operator + (vector a, vector b) {return vector (a.x + b.x, a.y + b.y);}
^
0_0_26577902_4027.cpp:20:1: error: reference to 'vector' is ambiguous
vector operator - (vector a, vector b) {return vector (a.x - b.x, a.y - b.y);}
^
0_0_26577902_4027.cpp:16:10: note: candidates are: typedef struct node vector
} point, 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_26577902_4027.cpp:3:
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_26577902_4027.cpp:20:1: error: 'vector' does not name a type
vector operator - (vector a, vector b) {return vector (a.x - b.x, a.y - b.y);}
^
0_0_26577902_4027.cpp:21:1: error: reference to 'vector' is ambiguous
vector operator * (vector a, double p) {return vector (a.x * p, a.y * p);}
^
0_0_26577902_4027.cpp:16:10: note: candidates are: typedef struct node vector
} point, 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_26577902_4027.cpp:3:
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_26577902_4027.cpp:21:1: error: 'vector' does not name a type
vector operator * (vector a, double p) {return vector (a.x * p, a.y * p);}
^
0_0_26577902_4027.cpp:22:1: error: reference to 'vector' is ambiguous
vector operator / (vector a, double p) {return vector (a.x/p, a.y/p);}
^
0_0_26577902_4027.cpp:16:10: note: candidates are: typedef struct node vector
} point, 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_26577902_4027.cpp:3:
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_26577902_4027.cpp:22:1: error: 'vector' does not name a type
vector operator / (vector a, double p) {return vector (a.x/p, a.y/p);}
^
0_0_26577902_4027.cpp: In function 'bool cmp(point, point)':
0_0_26577902_4027.cpp:32:5: error: reference to 'vector' is ambiguous
vector x = a - p[0], y = b - p[0];
^
0_0_26577902_4027.cpp:16:10: note: candidates are: typedef struct node vector
} point, 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_26577902_4027.cpp:3:
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_26577902_4027.cpp:33:12: error: 'x' was not declared in this scope
return x.y / x.x < y.y / y.x;
^
0_0_26577902_4027.cpp:33:24: error: 'y' was not declared in this scope
return x.y / x.x < y.y / y.x;
^
0_0_26577902_4027.cpp: At global scope:
0_0_26577902_4027.cpp:36:14: error: reference to 'vector' is ambiguous
double cross(vector a, vector b) {
^
0_0_26577902_4027.cpp:16:10: note: candidates are: typedef struct node vector
} point, 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_26577902_4027.cpp:3:
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_26577902_4027.cpp:36:24: error: reference to 'vector' is ambiguous
double cross(vector a, vector b) {
^
0_0_26577902_4027.cpp:16:10: note: candidates are: typedef struct node vector
} point, 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_26577902_4027.cpp:3:
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_26577902_4027.cpp:36:32: error: expression list treated as compound expression in initializer [-fpermissive]
double cross(vector a, vector b) {
^
0_0_26577902_4027.cpp:36:34: error: expected ',' or ';' before '{' token
double cross(vector a, vector b) {
^
0_0_26577902_4027.cpp: In function 'point PolyGravity(point*, int)':
0_0_26577902_4027.cpp:44:31: error: no match for 'operator-' (operand types are 'point {aka node}' and 'point {aka node}')
area = cross(p[i - 1] - p[0], p[i] - p[0]);
^
0_0_26577902_4027.cpp:44:31: 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_26577902_4027.cpp:3:
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_26577902_4027.cpp:44:36: note: 'point {aka node}' is not derived from 'const std::reverse_iterator<_Iterator>'
area = cross(p[i - 1] - p[0], p[i] - p[0]);
^
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_26577902_4027.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator.h:380:5: note: templ
|