foo.cpp:26:14: error: reference to 'vector' is ambiguous
point o; vector v;
^
foo.cpp:23:15: note: candidates are: typedef struct point vector
typedef point vector;
^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\vector:64:0,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\random.h:34,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\random:50,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:65,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from foo.cpp:2:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:210:11: note: template<class _Tp, class _Alloc> class std::vector
class vector : protected _Vector_base<_Tp, _Alloc>
^
foo.cpp:26:14: error: 'vector' does not name a type
point o; vector v;
^
foo.cpp:29:19: error: reference to 'vector' is ambiguous
line(point a, vector b, double c, int d) { o = a, v = b, sita = c, no = d; }
^
foo.cpp:23:15: note: candidates are: typedef struct point vector
typedef point vector;
^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\vector:64:0,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\random.h:34,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\random:50,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:65,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from foo.cpp:2:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:210:11: note: template<class _Tp, class _Alloc> class std::vector
class vector : protected _Vector_base<_Tp, _Alloc>
^
foo.cpp:29:19: error: 'vector' has not been declared
line(point a, vector b, double c, int d) { o = a, v = b, sita = c, no = d; }
^
foo.cpp: In constructor 'line::line(point, int, double, int)':
foo.cpp:29:55: error: 'v' was not declared in this scope
line(point a, vector b, double c, int d) { o = a, v = b, sita = c, no = d; }
^
foo.cpp: At global scope:
foo.cpp:35:1: error: reference to 'vector' is ambiguous
vector operator - (vector a, vector b) { return vector(a.x-b.x, a.y-b.y); }
^
foo.cpp:23:15: note: candidates are: typedef struct point vector
typedef point vector;
^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\vector:64:0,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\random.h:34,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\random:50,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:65,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from foo.cpp:2:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:210:11: note: template<class _Tp, class _Alloc> class std::vector
class vector : protected _Vector_base<_Tp, _Alloc>
^
foo.cpp:35:1: error: 'vector' does not name a type
vector operator - (vector a, vector b) { return vector(a.x-b.x, a.y-b.y); }
^
foo.cpp:36:1: error: reference to 'vector' is ambiguous
vector operator + (point a, vector b) { return vector(a.x+b.x, a.y+b.y); }
^
foo.cpp:23:15: note: candidates are: typedef struct point vector
typedef point vector;
^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\vector:64:0,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\random.h:34,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\random:50,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:65,
from c:\tdm-gcc-32\lib\gcc\m