0_0_26577905_31693.cpp:17: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_26577905_31693.cpp:14: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_26577905_31693.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_26577905_31693.cpp:17: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_26577905_31693.cpp:18: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_26577905_31693.cpp:14: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_26577905_31693.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_26577905_31693.cpp:18: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_26577905_31693.cpp:19:1: error: reference to 'vector' is ambiguous
vector operator * (vector a, double p) {return vector (a.x * p, a.y * p);}
^
0_0_26577905_31693.cpp:14: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_26577905_31693.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_26577905_31693.cpp:19:1: error: 'vector' does not name a type
vector operator * (vector a, double p) {return vector (a.x * p, a.y * p);}
^
0_0_26577905_31693.cpp:20:1: error: reference to 'vector' is ambiguous
vector operator / (vector a, double p) {return vector (a.x/p, a.y/p);}
^
0_0_26577905_31693.cpp:14: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_26577905_31693.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_26577905_31693.cpp:20:1: error: 'vector' does not name a type
vector operator / (vector a, double p) {return vector (a.x/p, a.y/p);}
^
0_0_26577905_31693.cpp: In function 'bool cmp(point, point)':
0_0_26577905_31693.cpp:30:5: error: reference to 'vector' is ambiguous
vector x = a - p[0], y = b - p[0];
^
0_0_26577905_31693.cpp:14: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_26577905_31693.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_26577905_31693.cpp:31:12: error: 'x' was not declared in this scope
return x.y / x.x < y.y / y.x;
^
0_0_26577905_31693.cpp:31:24: error: 'y' was not declared in this scope
return x.y / x.x < y.y / y.x;
^
0_0_26577905_31693.cpp: At global scope:
0_0_26577905_31693.cpp:34:14: error: reference to 'vector' is ambiguous
double cross(vector a, vector b) {
^
0_0_26577905_31693.cpp:14: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_26577905_31693.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_26577905_31693.cpp:34:24: error: reference to 'vector' is ambiguous
double cross(vector a, vector b) {
^
0_0_26577905_31693.cpp:14: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_26577905_31693.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_26577905_31693.cpp:34:32: error: expression list treated as compound expression in initializer [-fpermissive]
double cross(vector a, vector b) {
^
0_0_26577905_31693.cpp:34:34: error: expected ',' or ';' before '{' token
double cross(vector a, vector b) {
^
0_0_26577905_31693.cpp: In function 'point PolyGravity(point*, int)':
0_0_26577905_31693.cpp:42: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_26577905_31693.cpp:42: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_26577905_31693.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_26577905_31693.cpp:42: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_26577905_31693.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/b
|