**** Build of configuration Debug for project FirstCplus ****
**** Internal Builder is used for build ****
g++ -IC:/MinGW/bin -O0 -g3 -Wall -c -fmessage-length=0 -ocpp\Vector3D.o ..\cpp\Vector3D.cpp
In file included from ..\cpp\Vector3D.cpp:8:
..\cpp\Vector3D.h:20: error: ISO C++ forbids declaration of 'ostream' with no type
..\cpp\Vector3D.h:20: error: 'ostream' is neither function nor member function; cannot be declared friend
..\cpp\Vector3D.h:20: error: expected ';' before '&' token
..\cpp\Vector3D.cpp:29: error: ISO C++ forbids declaration of 'operator+' with no type
..\cpp\Vector3D.cpp:29: error: prototype for 'int Vector3D::operator+(const Vector3D&)' does not match any in class 'Vector3D'
..\cpp\Vector3D.h:18: error: candidate is: Vector3D Vector3D::operator+(const Vector3D&)
..\cpp\Vector3D.h: In function 'std::ostream& operator<<(std::ostream&, const Vector3D&)':
..\cpp\Vector3D.h:12: error: 'int Vector3D::x' is protected
..\cpp\Vector3D.cpp:38: error: within this context
..\cpp\Vector3D.h:13: error: 'int Vector3D::y' is protected
..\cpp\Vector3D.cpp:38: error: within this context
..\cpp\Vector3D.h:14: error: 'int Vector3D::z' is protected
..\cpp\Vector3D.cpp:38: error: within this context
Build error occurred, build is stopped
Time consumed: 359 ms.
**** Build of configuration Debug for project FirstCplus ****
**** Internal Builder is used for build ****
g++ -IC:/MinGW/bin -O0 -g3 -Wall -c -fmessage-length=0 -ocpp\Vector3D.o ..\cpp\Vector3D.cpp
In file included from ..\cpp\Vector3D.cpp:8:
..\cpp\Vector3D.h:20: error: ISO C++ forbids declaration of 'ostream' with no type
..\cpp\Vector3D.h:20: error: 'ostream' is neither function nor member function; cannot be declared friend
..\cpp\Vector3D.h:20: error: expected ';' before '&' token
..\cpp\Vector3D.cpp:35: error: expected constructor, destructor, or type conversion before '&' token
Build error occurred, build is stopped
Time consumed: 310 ms.