0_0_14745420_3190.cpp:31:35: error: reference to 'vector' is ambiguous
point getlineintersection(point p,vector v,point q,vector w){
^
0_0_14745420_3190.cpp:30:15: note: candidates are: typedef struct point vector
typedef 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_14745420_3190.cpp:4:
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_14745420_3190.cpp:31:35: error: 'vector' has not been declared
point getlineintersection(point p,vector v,point q,vector w){
^
0_0_14745420_3190.cpp:31:52: error: reference to 'vector' is ambiguous
point getlineintersection(point p,vector v,point q,vector w){
^
0_0_14745420_3190.cpp:30:15: note: candidates are: typedef struct point vector
typedef 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_14745420_3190.cpp:4:
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_14745420_3190.cpp:31:52: error: 'vector' has not been declared
point getlineintersection(point p,vector v,point q,vector w){
^
0_0_14745420_3190.cpp: In function 'point getlineintersection(point, int, point, int)':
0_0_14745420_3190.cpp:32:5: error: reference to 'vector' is ambiguous
vector u=p-q;
^
0_0_14745420_3190.cpp:30:15: note: candidates are: typedef struct point vector
typedef 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_14745420_3190.cpp:4:
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_14745420_3190.cpp:33:22: error: 'u' was not declared in this scope
double t=cross(w,u)/cross(v,w);
^
0_0_14745420_3190.cpp: At global scope:
0_0_14745420_3190.cpp:36:1: error: reference to 'vector' is ambiguous
vector normal(vector A){
^
0_0_14745420_3190.cpp:30:15: note: candidates are: typedef struct point vector
typedef 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_14745420_3190.cpp:4:
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_14745420_3190.cpp:36:1: error: 'vector' does not name a type
vector normal(vector A){
^
0_0_14745420_3190.cpp:39:12: error: reference to 'vector' is ambiguous
double Dot(vector A,vector B){return A.x*B.x+A.y*B.y;}
^
0_0_14745420_3190.cpp:30:15: note: candidates are: typedef struct point vector
typedef 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_14745420_3190.cpp:4:
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_14745420_3190.cpp:39:21: error: reference to 'vector' is ambiguous
double Dot(vector A,vector B){return A.x*B.x+A.y*B.y;}
^
0_0_14745420_3190.cpp:30:15: note: candidates are: typedef struct point vector
typedef 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_14745420_3190.cpp:4:
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_14745420_3190.cpp:39:29: error: expression list treated as compound expression in initializer [-fpermissive]
double Dot(vector A,vector B){return A.x*B.x+A.y*B.y;}
^
0_0_14745420_3190.cpp:39:30: error: expected ',' or ';' before '{' token
double Dot(vector A,vector B){return A.x*B.x+A.y*B.y;}
^
0_0_14745420_3190.cpp:40:15: error: reference to 'vector' is ambiguous
double Length(vector A){return sqrt(Dot(A,A));}
^
0_0_14745420_3190.cpp:30:15: note: candidates are: typedef struct point vector
typedef 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_14745420_3190.cpp:4:
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_14745420_3190.cpp:40:24: error: expected ',' or ';' before '{' token
double Length(vector A){return sqrt(Dot(A,A));}
^
0_0_14745420_3190.cpp:41:14: error: reference to 'vector' is ambiguous
double angle(vector A,vector B){
^
0_0_14745420_3190.cpp:30:15: note: candidates are: typedef struct point vector
typedef 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_14745420_3190.cpp:4:
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_14745420_3190.cpp:41:23: error: reference to 'vector' is ambiguous
double angle(vector A,vector B){
^
0_0_14745420_3190.cpp:30:15: note: candidates are: typedef struct point vector
typedef 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-
|