Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [josh@localhost complex_number_calculator-master]$ make main
- 'g++ main.cpp -o main
- main.cpp: In function ‘int main()’:
- main.cpp:86:17: error: ‘numeric_limits’ was not declared in this scope
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^~~~~~~~~~~~~~
- main.cpp:86:42: error: expected primary-expression before ‘>’ token
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- main.cpp:86:49: error: no matching function for call to ‘max()’
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
- from /usr/include/c++/6.1.1/ios:40,
- from /usr/include/c++/6.1.1/ostream:38,
- from /usr/include/c++/6.1.1/iostream:39,
- from main.cpp:40:
- /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&)
- max(const _Tp& __a, const _Tp& __b)
- ^~~
- /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
- main.cpp:86:49: note: candidate expects 2 arguments, 0 provided
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
- from /usr/include/c++/6.1.1/ios:40,
- from /usr/include/c++/6.1.1/ostream:38,
- from /usr/include/c++/6.1.1/iostream:39,
- from main.cpp:40:
- /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)
- max(const _Tp& __a, const _Tp& __b, _Compare __comp)
- ^~~
- /usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
- main.cpp:86:49: note: candidate expects 3 arguments, 0 provided
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- main.cpp:95:16: error: ‘numeric_limits’ was not declared in this scope
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^~~~~~~~~~~~~~
- main.cpp:95:41: error: expected primary-expression before ‘>’ token
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- main.cpp:95:48: error: no matching function for call to ‘max()’
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
- from /usr/include/c++/6.1.1/ios:40,
- from /usr/include/c++/6.1.1/ostream:38,
- from /usr/include/c++/6.1.1/iostream:39,
- from main.cpp:40:
- /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&)
- max(const _Tp& __a, const _Tp& __b)
- ^~~
- /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
- main.cpp:95:48: note: candidate expects 2 arguments, 0 provided
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
- from /usr/include/c++/6.1.1/ios:40,
- from /usr/include/c++/6.1.1/ostream:38,
- from /usr/include/c++/6.1.1/iostream:39,
- from main.cpp:40:
- /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)
- max(const _Tp& __a, const _Tp& __b, _Compare __comp)
- ^~~
- /usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
- main.cpp:95:48: note: candidate expects 3 arguments, 0 provided
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- main.cpp:122:17: error: ‘numeric_limits’ was not declared in this scope
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^~~~~~~~~~~~~~
- main.cpp:122:42: error: expected primary-expression before ‘>’ token
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- main.cpp:122:49: error: no matching function for call to ‘max()’
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
- from /usr/include/c++/6.1.1/ios:40,
- from /usr/include/c++/6.1.1/ostream:38,
- from /usr/include/c++/6.1.1/iostream:39,
- from main.cpp:40:
- /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&)
- max(const _Tp& __a, const _Tp& __b)
- ^~~
- /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
- main.cpp:122:49: note: candidate expects 2 arguments, 0 provided
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
- from /usr/include/c++/6.1.1/ios:40,
- from /usr/include/c++/6.1.1/ostream:38,
- from /usr/include/c++/6.1.1/iostream:39,
- from main.cpp:40:
- /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)
- max(const _Tp& __a, const _Tp& __b, _Compare __comp)
- ^~~
- /usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
- main.cpp:122:49: note: candidate expects 3 arguments, 0 provided
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- main.cpp:131:16: error: ‘numeric_limits’ was not declared in this scope
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^~~~~~~~~~~~~~
- main.cpp:131:41: error: expected primary-expression before ‘>’ token
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- main.cpp:131:48: error: no matching function for call to ‘max()’
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
- from /usr/include/c++/6.1.1/ios:40,
- from /usr/include/c++/6.1.1/ostream:38,
- from /usr/include/c++/6.1.1/iostream:39,
- from main.cpp:40:
- /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&)
- max(const _Tp& __a, const _Tp& __b)
- ^~~
- /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: note: template argument deduction/substitution failed:
- main.cpp:131:48: note: candidate expects 2 arguments, 0 provided
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- In file included from /usr/include/c++/6.1.1/bits/char_traits.h:39:0,
- from /usr/include/c++/6.1.1/ios:40,
- from /usr/include/c++/6.1.1/ostream:38,
- from /usr/include/c++/6.1.1/iostream:39,
- from main.cpp:40:
- /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)
- max(const _Tp& __a, const _Tp& __b, _Compare __comp)
- ^~~
- /usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: note: template argument deduction/substitution failed:
- main.cpp:131:48: note: candidate expects 3 arguments, 0 provided
- cin.ignore(numeric_limits<streamsize>::max(), '\n');
- ^
- <builtin>: recipe for target 'main' failed
- make: *** [main] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement