This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 5th, 2012  |  syntax: None  |  size: 15.45 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. main.cpp: In function ‘int main()’:
  2. main.cpp:63:5: error: ‘score’ was not declared in this scope
  3. main.cpp:65:3: error: expected ‘;’ before ‘}’ token
  4. main.cpp:70:11: error: no match for ‘operator<<’ in ‘money << score’
  5. main.cpp:70:11: note: candidates are:
  6. In file included from /usr/include/c++/4.7/string:54:0,
  7.                  from /usr/include/c++/4.7/bits/locale_classes.h:42,
  8.                  from /usr/include/c++/4.7/bits/ios_base.h:43,
  9.                  from /usr/include/c++/4.7/ios:43,
  10.                  from /usr/include/c++/4.7/ostream:40,
  11.                  from /usr/include/c++/4.7/iostream:40,
  12.                  from main.cpp:1:
  13. /usr/include/c++/4.7/bits/basic_string.h:2750:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
  14. /usr/include/c++/4.7/bits/basic_string.h:2750:5: note:   template argument deduction/substitution failed:
  15. main.cpp:70:11: note:   ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
  16. In file included from /usr/include/c++/4.7/iostream:40:0,
  17.                  from main.cpp:1:
  18. /usr/include/c++/4.7/ostream:469:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)
  19. /usr/include/c++/4.7/ostream:469:5: note:   template argument deduction/substitution failed:
  20. main.cpp:70:11: note:   ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
  21. In file included from /usr/include/c++/4.7/iostream:40:0,
  22.                  from main.cpp:1:
  23. /usr/include/c++/4.7/ostream:474:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)
  24. /usr/include/c++/4.7/ostream:474:5: note:   template argument deduction/substitution failed:
  25. main.cpp:70:11: note:   ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
  26. In file included from /usr/include/c++/4.7/iostream:40:0,
  27.                  from main.cpp:1:
  28. /usr/include/c++/4.7/ostream:480:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)
  29. /usr/include/c++/4.7/ostream:480:5: note:   template argument deduction/substitution failed:
  30. main.cpp:70:11: note:   ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
  31. In file included from /usr/include/c++/4.7/iostream:40:0,
  32.                  from main.cpp:1:
  33. /usr/include/c++/4.7/ostream:486:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char)
  34. /usr/include/c++/4.7/ostream:486:5: note:   template argument deduction/substitution failed:
  35. main.cpp:70:11: note:   ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
  36. In file included from /usr/include/c++/4.7/iostream:40:0,
  37.                  from main.cpp:1:
  38. /usr/include/c++/4.7/ostream:491:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char)
  39. /usr/include/c++/4.7/ostream:491:5: note:   template argument deduction/substitution failed:
  40. main.cpp:70:11: note:   ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
  41. In file included from /usr/include/c++/4.7/iostream:40:0,
  42.                  from main.cpp:1:
  43. /usr/include/c++/4.7/ostream:511:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)
  44. /usr/include/c++/4.7/ostream:511:5: note:   template argument deduction/substitution failed:
  45. main.cpp:70:11: note:   ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
  46. In file included from /usr/include/c++/4.7/ostream:607:0,
  47.                  from /usr/include/c++/4.7/iostream:40,
  48.                  from main.cpp:1:
  49. /usr/include/c++/4.7/bits/ostream.tcc:323:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*)
  50. /usr/include/c++/4.7/bits/ostream.tcc:323:5: note:   template argument deduction/substitution failed:
  51. main.cpp:70:11: note:   ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
  52. In file included from /usr/include/c++/4.7/iostream:40:0,
  53.                  from main.cpp:1:
  54. /usr/include/c++/4.7/ostream:528:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)
  55. /usr/include/c++/4.7/ostream:528:5: note:   template argument deduction/substitution failed:
  56. main.cpp:70:11: note:   ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
  57. In file included from /usr/include/c++/4.7/iostream:40:0,
  58.                  from main.cpp:1:
  59. /usr/include/c++/4.7/ostream:541:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*)
  60. /usr/include/c++/4.7/ostream:541:5: note:   template argument deduction/substitution failed:
  61. main.cpp:70:11: note:   ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
  62. In file included from /usr/include/c++/4.7/iostream:40:0,
  63.                  from main.cpp:1:
  64. /usr/include/c++/4.7/ostream:546:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*)
  65. /usr/include/c++/4.7/ostream:546:5: note:   template argument deduction/substitution failed:
  66. main.cpp:70:11: note:   ‘std::ifstream {aka std::basic_ifstream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
  67. main.cpp:73:18: error: conflicting declaration ‘std::ofstream money’
  68. main.cpp:31:12: error: ‘money’ has a previous declaration as ‘std::ifstream money’
  69. main.cpp:113:25: error: no match for ‘operator>’ in ‘amount_to_bet > money’
  70. main.cpp:113:25: note: candidates are:
  71. In file included from /usr/include/c++/4.7/bits/stl_algobase.h:65:0,
  72.                  from /usr/include/c++/4.7/bits/char_traits.h:41,
  73.                  from /usr/include/c++/4.7/ios:41,
  74.                  from /usr/include/c++/4.7/ostream:40,
  75.                  from /usr/include/c++/4.7/iostream:40,
  76.                  from main.cpp:1:
  77. /usr/include/c++/4.7/bits/stl_pair.h:225:5: note: template<class _T1, class _T2> bool std::operator>(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
  78. /usr/include/c++/4.7/bits/stl_pair.h:225:5: note:   template argument deduction/substitution failed:
  79. main.cpp:113:25: note:   mismatched types ‘const std::pair<_T1, _T2>’ and ‘int’
  80. In file included from /usr/include/c++/4.7/bits/stl_algobase.h:68:0,
  81.                  from /usr/include/c++/4.7/bits/char_traits.h:41,
  82.                  from /usr/include/c++/4.7/ios:41,
  83.                  from /usr/include/c++/4.7/ostream:40,
  84.                  from /usr/include/c++/4.7/iostream:40,
  85.                  from main.cpp:1:
  86. /usr/include/c++/4.7/bits/stl_iterator.h:311:5: note: template<class _Iterator> bool std::operator>(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
  87. /usr/include/c++/4.7/bits/stl_iterator.h:311:5: note:   template argument deduction/substitution failed:
  88. main.cpp:113:25: note:   mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘int’
  89. In file included from /usr/include/c++/4.7/bits/stl_algobase.h:68:0,
  90.                  from /usr/include/c++/4.7/bits/char_traits.h:41,
  91.                  from /usr/include/c++/4.7/ios:41,
  92.                  from /usr/include/c++/4.7/ostream:40,
  93.                  from /usr/include/c++/4.7/iostream:40,
  94.                  from main.cpp:1:
  95. /usr/include/c++/4.7/bits/stl_iterator.h:361:5: note: template<class _IteratorL, class _IteratorR> bool std::operator>(const std::reverse_iterator<_IteratorL>&, const std::reverse_iterator<_IteratorR>&)
  96. /usr/include/c++/4.7/bits/stl_iterator.h:361:5: note:   template argument deduction/substitution failed:
  97. main.cpp:113:25: note:   mismatched types ‘const std::reverse_iterator<_IteratorL>’ and ‘int’
  98. In file included from /usr/include/c++/4.7/string:54:0,
  99.                  from /usr/include/c++/4.7/bits/locale_classes.h:42,
  100.                  from /usr/include/c++/4.7/bits/ios_base.h:43,
  101.                  from /usr/include/c++/4.7/ios:43,
  102.                  from /usr/include/c++/4.7/ostream:40,
  103.                  from /usr/include/c++/4.7/iostream:40,
  104.                  from main.cpp:1:
  105. /usr/include/c++/4.7/bits/basic_string.h:2603:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
  106. /usr/include/c++/4.7/bits/basic_string.h:2603:5: note:   template argument deduction/substitution failed:
  107. main.cpp:113:25: note:   mismatched types ‘const std::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
  108. In file included from /usr/include/c++/4.7/string:54:0,
  109.                  from /usr/include/c++/4.7/bits/locale_classes.h:42,
  110.                  from /usr/include/c++/4.7/bits/ios_base.h:43,
  111.                  from /usr/include/c++/4.7/ios:43,
  112.                  from /usr/include/c++/4.7/ostream:40,
  113.                  from /usr/include/c++/4.7/iostream:40,
  114.                  from main.cpp:1:
  115. /usr/include/c++/4.7/bits/basic_string.h:2615:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
  116. /usr/include/c++/4.7/bits/basic_string.h:2615:5: note:   template argument deduction/substitution failed:
  117. main.cpp:113:25: note:   mismatched types ‘const std::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
  118. In file included from /usr/include/c++/4.7/string:54:0,
  119.                  from /usr/include/c++/4.7/bits/locale_classes.h:42,
  120.                  from /usr/include/c++/4.7/bits/ios_base.h:43,
  121.                  from /usr/include/c++/4.7/ios:43,
  122.                  from /usr/include/c++/4.7/ostream:40,
  123.                  from /usr/include/c++/4.7/iostream:40,
  124.                  from main.cpp:1:
  125. /usr/include/c++/4.7/bits/basic_string.h:2627:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
  126. /usr/include/c++/4.7/bits/basic_string.h:2627:5: note:   template argument deduction/substitution failed:
  127. main.cpp:113:25: note:   mismatched types ‘const _CharT*’ and ‘int’
  128. main.cpp:123:25: error: no match for ‘operator>’ in ‘amount_to_bet > money’
  129. main.cpp:123:25: note: candidates are:
  130. In file included from /usr/include/c++/4.7/bits/stl_algobase.h:65:0,
  131.                  from /usr/include/c++/4.7/bits/char_traits.h:41,
  132.                  from /usr/include/c++/4.7/ios:41,
  133.                  from /usr/include/c++/4.7/ostream:40,
  134.                  from /usr/include/c++/4.7/iostream:40,
  135.                  from main.cpp:1:
  136. /usr/include/c++/4.7/bits/stl_pair.h:225:5: note: template<class _T1, class _T2> bool std::operator>(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
  137. /usr/include/c++/4.7/bits/stl_pair.h:225:5: note:   template argument deduction/substitution failed:
  138. main.cpp:123:25: note:   mismatched types ‘const std::pair<_T1, _T2>’ and ‘int’
  139. In file included from /usr/include/c++/4.7/bits/stl_algobase.h:68:0,
  140.                  from /usr/include/c++/4.7/bits/char_traits.h:41,
  141.                  from /usr/include/c++/4.7/ios:41,
  142.                  from /usr/include/c++/4.7/ostream:40,
  143.                  from /usr/include/c++/4.7/iostream:40,
  144.                  from main.cpp:1:
  145. /usr/include/c++/4.7/bits/stl_iterator.h:311:5: note: template<class _Iterator> bool std::operator>(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)
  146. /usr/include/c++/4.7/bits/stl_iterator.h:311:5: note:   template argument deduction/substitution failed:
  147. main.cpp:123:25: note:   mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘int’
  148. In file included from /usr/include/c++/4.7/bits/stl_algobase.h:68:0,
  149.                  from /usr/include/c++/4.7/bits/char_traits.h:41,
  150.                  from /usr/include/c++/4.7/ios:41,
  151.                  from /usr/include/c++/4.7/ostream:40,
  152.                  from /usr/include/c++/4.7/iostream:40,
  153.                  from main.cpp:1:
  154. /usr/include/c++/4.7/bits/stl_iterator.h:361:5: note: template<class _IteratorL, class _IteratorR> bool std::operator>(const std::reverse_iterator<_IteratorL>&, const std::reverse_iterator<_IteratorR>&)
  155. /usr/include/c++/4.7/bits/stl_iterator.h:361:5: note:   template argument deduction/substitution failed:
  156. main.cpp:123:25: note:   mismatched types ‘const std::reverse_iterator<_IteratorL>’ and ‘int’
  157. In file included from /usr/include/c++/4.7/string:54:0,
  158.                  from /usr/include/c++/4.7/bits/locale_classes.h:42,
  159.                  from /usr/include/c++/4.7/bits/ios_base.h:43,
  160.                  from /usr/include/c++/4.7/ios:43,
  161.                  from /usr/include/c++/4.7/ostream:40,
  162.                  from /usr/include/c++/4.7/iostream:40,
  163.                  from main.cpp:1:
  164. /usr/include/c++/4.7/bits/basic_string.h:2603:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
  165. /usr/include/c++/4.7/bits/basic_string.h:2603:5: note:   template argument deduction/substitution failed:
  166. main.cpp:123:25: note:   mismatched types ‘const std::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
  167. In file included from /usr/include/c++/4.7/string:54:0,
  168.                  from /usr/include/c++/4.7/bits/locale_classes.h:42,
  169.                  from /usr/include/c++/4.7/bits/ios_base.h:43,
  170.                  from /usr/include/c++/4.7/ios:43,
  171.                  from /usr/include/c++/4.7/ostream:40,
  172.                  from /usr/include/c++/4.7/iostream:40,
  173.                  from main.cpp:1:
  174. /usr/include/c++/4.7/bits/basic_string.h:2615:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*)
  175. /usr/include/c++/4.7/bits/basic_string.h:2615:5: note:   template argument deduction/substitution failed:
  176. main.cpp:123:25: note:   mismatched types ‘const std::basic_string<_CharT, _Traits, _Alloc>’ and ‘int’
  177. In file included from /usr/include/c++/4.7/string:54:0,
  178.                  from /usr/include/c++/4.7/bits/locale_classes.h:42,
  179.                  from /usr/include/c++/4.7/bits/ios_base.h:43,
  180.                  from /usr/include/c++/4.7/ios:43,
  181.                  from /usr/include/c++/4.7/ostream:40,
  182.                  from /usr/include/c++/4.7/iostream:40,
  183.                  from main.cpp:1:
  184. /usr/include/c++/4.7/bits/basic_string.h:2627:5: note: template<class _CharT, class _Traits, class _Alloc> bool std::operator>(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&)
  185. /usr/include/c++/4.7/bits/basic_string.h:2627:5: note:   template argument deduction/substitution failed:
  186. main.cpp:123:25: note:   mismatched types ‘const _CharT*’ and ‘int’
clone this paste RAW Paste Data