Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1>h:\c++\source files\program 2\program 2\program 2.cpp(6): error C2562: 'add' : 'void' function returning a value
- 1> h:\c++\source files\program 2\program 2\program 2.cpp(4) : see declaration of 'add'
- 1>h:\c++\source files\program 2\program 2\program 2.cpp(13): error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'void' (or there is no acceptable conversion)
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(679): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const char *)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(726): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,char)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(764): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const char *)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(811): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,char)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(937): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const signed char *)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(944): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,signed char)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(951): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(958): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,unsigned char)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(1085): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const std::error_code &)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(186): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(192): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(199): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(206): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(226): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(260): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(280): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(int)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(305): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned int)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(325): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(345): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned long)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(366): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(386): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(407): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(427): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(447): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(467): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
- 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\ostream(487): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)'
- 1> with
- 1> [
- 1> _Elem=char,
- 1> _Traits=std::char_traits<char>
- 1> ]
Add Comment
Please, Sign In to add comment