0_0_18306836_28646.cpp: In function 'int main()':
0_0_18306836_28646.cpp:32:3: error: reference to 'vector' is ambiguous
vector q1, q2, p1, p2;
^
0_0_18306836_28646.cpp:5:8: note: candidates are: struct vector
struct 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_18306836_28646.cpp:2:
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_18306836_28646.cpp:33:23: error: 'p1' was not declared in this scope
scanf("%lf%lf%lf", &p1.x, &p1.y, &p1.z);
^
0_0_18306836_28646.cpp:34:23: error: 'q1' was not declared in this scope
scanf("%lf%lf%lf", &q1.x, &q1.y, &q1.z);
^
0_0_18306836_28646.cpp:35:23: error: 'p2' was not declared in this scope
scanf("%lf%lf%lf", &p2.x, &p2.y, &p2.z);
^
0_0_18306836_28646.cpp:36:23: error: 'q2' was not declared in this scope
scanf("%lf%lf%lf", &q2.x, &q2.y, &q2.z);
^
0_0_18306836_28646.cpp:37:3: error: reference to 'vector' is ambiguous
vector d1 = q1 - p1;
^
0_0_18306836_28646.cpp:5:8: note: candidates are: struct vector
struct 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_18306836_28646.cpp:2:
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_18306836_28646.cpp:38:3: error: reference to 'vector' is ambiguous
vector d2 = q2 - p2;
^
0_0_18306836_28646.cpp:5:8: note: candidates are: struct vector
struct 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_18306836_28646.cpp:2:
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_18306836_28646.cpp:39:3: error: reference to 'vector' is ambiguous
vector r = p1 - p2;
^
0_0_18306836_28646.cpp:5:8: note: candidates are: struct vector
struct 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_18306836_28646.cpp:2:
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_18306836_28646.cpp:40:14: error: 'd1' was not declared in this scope
double a = d1 * d1;
^
0_0_18306836_28646.cpp:41:19: error: 'd2' was not declared in this scope
double b = d1 * d2;
^
0_0_18306836_28646.cpp:42:19: error: 'r' was not declared in this scope
double c = d1 * r;
^
0_0_18306836_28646.cpp:48:3: error: reference to 'vector' is ambiguous
vector x = p1 + d1 * s;
^
0_0_18306836_28646.cpp:5:8: note: candidates are: struct vector
struct 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_18306836_28646.cpp:2:
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_18306836_28646.cpp:49:3: error: reference to 'vector' is ambiguous
vector y = p2 + d2 * t;
^
0_0_18306836_28646.cpp:5:8: note: candidates are: struct vector
struct 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_18306836_28646.cpp:2:
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_18306836_28646.cpp:50:3: error: reference to 'vector' is ambiguous
vector xy = x - y;
^
0_0_18306836_28646.cpp:5:8: note: candidates are: struct vector
struct 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_18306836_28646.cpp:2:
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_18306836_28646.cpp:51:26: error: 'xy' was not declared in this scope
printf("%.6lf\n", sqrt(xy * xy));
^
0_0_18306836_28646.cpp:52:51: error: 'x' was not declared in this scope
printf("%.6lf %.6lf %.6lf %.6lf %.6lf %.6lf\n", x.x, x.y, x.z, y.x, y.y, y.z);
^
0_0_18306836_28646.cpp:52:66: error: 'y' was not declared in this scope
printf("%.6lf %.6lf %.6lf %.6lf %.6lf %.6lf\n", x.x, x.y, x.z, y.x, y.y, y.z);
^
|