Guest User

Untitled

a guest
Jan 13th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.01 KB | None | 0 0
  1. 1>h:\c++\source files\program 2\program 2\program 2.cpp(6): error C2562: 'add' : 'void' function returning a value
  2. 1> h:\c++\source files\program 2\program 2\program 2.cpp(4) : see declaration of 'add'
  3. 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)
  4. 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 *)'
  5. 1> with
  6. 1> [
  7. 1> _Elem=char,
  8. 1> _Traits=std::char_traits<char>
  9. 1> ]
  10. 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)'
  11. 1> with
  12. 1> [
  13. 1> _Elem=char,
  14. 1> _Traits=std::char_traits<char>
  15. 1> ]
  16. 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 *)'
  17. 1> with
  18. 1> [
  19. 1> _Elem=char,
  20. 1> _Traits=std::char_traits<char>
  21. 1> ]
  22. 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)'
  23. 1> with
  24. 1> [
  25. 1> _Elem=char,
  26. 1> _Traits=std::char_traits<char>
  27. 1> ]
  28. 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 *)'
  29. 1> with
  30. 1> [
  31. 1> _Elem=char,
  32. 1> _Traits=std::char_traits<char>
  33. 1> ]
  34. 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)'
  35. 1> with
  36. 1> [
  37. 1> _Elem=char,
  38. 1> _Traits=std::char_traits<char>
  39. 1> ]
  40. 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 *)'
  41. 1> with
  42. 1> [
  43. 1> _Elem=char,
  44. 1> _Traits=std::char_traits<char>
  45. 1> ]
  46. 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)'
  47. 1> with
  48. 1> [
  49. 1> _Elem=char,
  50. 1> _Traits=std::char_traits<char>
  51. 1> ]
  52. 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 &)'
  53. 1> with
  54. 1> [
  55. 1> _Elem=char,
  56. 1> _Traits=std::char_traits<char>
  57. 1> ]
  58. 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> &))'
  59. 1> with
  60. 1> [
  61. 1> _Elem=char,
  62. 1> _Traits=std::char_traits<char>
  63. 1> ]
  64. 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> &))'
  65. 1> with
  66. 1> [
  67. 1> _Elem=char,
  68. 1> _Traits=std::char_traits<char>
  69. 1> ]
  70. 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 &))'
  71. 1> with
  72. 1> [
  73. 1> _Elem=char,
  74. 1> _Traits=std::char_traits<char>
  75. 1> ]
  76. 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)'
  77. 1> with
  78. 1> [
  79. 1> _Elem=char,
  80. 1> _Traits=std::char_traits<char>
  81. 1> ]
  82. 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)'
  83. 1> with
  84. 1> [
  85. 1> _Elem=char,
  86. 1> _Traits=std::char_traits<char>
  87. 1> ]
  88. 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)'
  89. 1> with
  90. 1> [
  91. 1> _Elem=char,
  92. 1> _Traits=std::char_traits<char>
  93. 1> ]
  94. 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)'
  95. 1> with
  96. 1> [
  97. 1> _Elem=char,
  98. 1> _Traits=std::char_traits<char>
  99. 1> ]
  100. 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)'
  101. 1> with
  102. 1> [
  103. 1> _Elem=char,
  104. 1> _Traits=std::char_traits<char>
  105. 1> ]
  106. 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)'
  107. 1> with
  108. 1> [
  109. 1> _Elem=char,
  110. 1> _Traits=std::char_traits<char>
  111. 1> ]
  112. 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)'
  113. 1> with
  114. 1> [
  115. 1> _Elem=char,
  116. 1> _Traits=std::char_traits<char>
  117. 1> ]
  118. 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)'
  119. 1> with
  120. 1> [
  121. 1> _Elem=char,
  122. 1> _Traits=std::char_traits<char>
  123. 1> ]
  124. 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)'
  125. 1> with
  126. 1> [
  127. 1> _Elem=char,
  128. 1> _Traits=std::char_traits<char>
  129. 1> ]
  130. 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)'
  131. 1> with
  132. 1> [
  133. 1> _Elem=char,
  134. 1> _Traits=std::char_traits<char>
  135. 1> ]
  136. 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)'
  137. 1> with
  138. 1> [
  139. 1> _Elem=char,
  140. 1> _Traits=std::char_traits<char>
  141. 1> ]
  142. 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)'
  143. 1> with
  144. 1> [
  145. 1> _Elem=char,
  146. 1> _Traits=std::char_traits<char>
  147. 1> ]
  148. 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 *)'
  149. 1> with
  150. 1> [
  151. 1> _Elem=char,
  152. 1> _Traits=std::char_traits<char>
  153. 1> ]
  154. 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> *)'
  155. 1> with
  156. 1> [
  157. 1> _Elem=char,
  158. 1> _Traits=std::char_traits<char>
  159. 1> ]
Add Comment
Please, Sign In to add comment