Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.35 KB | None | 0 0
  1. [josh@localhost complex_number_calculator-master]$ make main
  2. 'g++ main.cpp -o main
  3. main.cpp: In function ‘int main()’:
  4. main.cpp:86:17: error: ‘numeric_limits’ was not declared in this scope
  5. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  6. ^~~~~~~~~~~~~~
  7. main.cpp:86:42: error: expected primary-expression before ‘>’ token
  8. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  9. ^
  10. main.cpp:86:49: error: no matching function for call to ‘max()’
  11. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  12. ^
  13. In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
  14. from /usr/include/c++/6.1.1/ios:40,
  15. from /usr/include/c++/6.1.1/ostream:38,
  16. from /usr/include/c++/6.1.1/iostream:39,
  17. from main.cpp:40:
  18. /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)
  19. max(const _Tp& __a, const _Tp& __b)
  20. ^~~
  21. /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
  22. main.cpp:86:49: note: candidate expects 2 arguments, 0 provided
  23. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  24. ^
  25. In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
  26. from /usr/include/c++/6.1.1/ios:40,
  27. from /usr/include/c++/6.1.1/ostream:38,
  28. from /usr/include/c++/6.1.1/iostream:39,
  29. from main.cpp:40:
  30. /usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
  31. max(const _Tp& __a, const _Tp& __b, _Compare __comp)
  32. ^~~
  33. /usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
  34. main.cpp:86:49: note: candidate expects 3 arguments, 0 provided
  35. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  36. ^
  37. main.cpp:95:16: error: ‘numeric_limits’ was not declared in this scope
  38. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  39. ^~~~~~~~~~~~~~
  40. main.cpp:95:41: error: expected primary-expression before ‘>’ token
  41. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  42. ^
  43. main.cpp:95:48: error: no matching function for call to ‘max()’
  44. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  45. ^
  46. In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
  47. from /usr/include/c++/6.1.1/ios:40,
  48. from /usr/include/c++/6.1.1/ostream:38,
  49. from /usr/include/c++/6.1.1/iostream:39,
  50. from main.cpp:40:
  51. /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)
  52. max(const _Tp& __a, const _Tp& __b)
  53. ^~~
  54. /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
  55. main.cpp:95:48: note: candidate expects 2 arguments, 0 provided
  56. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  57. ^
  58. In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
  59. from /usr/include/c++/6.1.1/ios:40,
  60. from /usr/include/c++/6.1.1/ostream:38,
  61. from /usr/include/c++/6.1.1/iostream:39,
  62. from main.cpp:40:
  63. /usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
  64. max(const _Tp& __a, const _Tp& __b, _Compare __comp)
  65. ^~~
  66. /usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
  67. main.cpp:95:48: note: candidate expects 3 arguments, 0 provided
  68. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  69. ^
  70. main.cpp:122:17: error: ‘numeric_limits’ was not declared in this scope
  71. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  72. ^~~~~~~~~~~~~~
  73. main.cpp:122:42: error: expected primary-expression before ‘>’ token
  74. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  75. ^
  76. main.cpp:122:49: error: no matching function for call to ‘max()’
  77. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  78. ^
  79. In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
  80. from /usr/include/c++/6.1.1/ios:40,
  81. from /usr/include/c++/6.1.1/ostream:38,
  82. from /usr/include/c++/6.1.1/iostream:39,
  83. from main.cpp:40:
  84. /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)
  85. max(const _Tp& __a, const _Tp& __b)
  86. ^~~
  87. /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
  88. main.cpp:122:49: note: candidate expects 2 arguments, 0 provided
  89. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  90. ^
  91. In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
  92. from /usr/include/c++/6.1.1/ios:40,
  93. from /usr/include/c++/6.1.1/ostream:38,
  94. from /usr/include/c++/6.1.1/iostream:39,
  95. from main.cpp:40:
  96. /usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
  97. max(const _Tp& __a, const _Tp& __b, _Compare __comp)
  98. ^~~
  99. /usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
  100. main.cpp:122:49: note: candidate expects 3 arguments, 0 provided
  101. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  102. ^
  103. main.cpp:131:16: error: ‘numeric_limits’ was not declared in this scope
  104. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  105. ^~~~~~~~~~~~~~
  106. main.cpp:131:41: error: expected primary-expression before ‘>’ token
  107. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  108. ^
  109. main.cpp:131:48: error: no matching function for call to ‘max()’
  110. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  111. ^
  112. In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
  113. from /usr/include/c++/6.1.1/ios:40,
  114. from /usr/include/c++/6.1.1/ostream:38,
  115. from /usr/include/c++/6.1.1/iostream:39,
  116. from main.cpp:40:
  117. /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)
  118. max(const _Tp& __a, const _Tp& __b)
  119. ^~~
  120. /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
  121. main.cpp:131:48: note: candidate expects 2 arguments, 0 provided
  122. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  123. ^
  124. In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
  125. from /usr/include/c++/6.1.1/ios:40,
  126. from /usr/include/c++/6.1.1/ostream:38,
  127. from /usr/include/c++/6.1.1/iostream:39,
  128. from main.cpp:40:
  129. /usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
  130. max(const _Tp& __a, const _Tp& __b, _Compare __comp)
  131. ^~~
  132. /usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
  133. main.cpp:131:48: note: candidate expects 3 arguments, 0 provided
  134. cin.ignore(numeric_limits<streamsize>::max(), '\n');
  135. ^
  136. <builtin>: recipe for target 'main' failed
  137. make: *** [main] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement