Advertisement
riggnaros

errors for phone number suggestion

Oct 4th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.26 KB | None | 0 0
  1. main.cpp: In function ‘int main():
  2. main.cpp:18:5: error: ‘input’ was not declared in this scope
  3.      input.ignore(std::numeric_limits<std::streamsize>::max(), '\n'
  4.      ^
  5. main.cpp:18:18: error: ‘numeric_limits’ is not a member of ‘std’
  6.      input.ignore(std::numeric_limits<std::streamsize>::max(), '\n'
  7.                   ^
  8. main.cpp:18:53: error: expected primary-expression before ‘>’ token
  9.      input.ignore(std::numeric_limits<std::streamsize>::max(), '\n'
  10.                                                      ^
  11. main.cpp:18:60: error: no matching function for call to ‘max()
  12.    input.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
  13.                                                           ^
  14. In file included from /usr/include/c++/5/bits/char_traits.h:39:0,
  15.                  from /usr/include/c++/5/ios:40,
  16.                  from /usr/include/c++/5/ostream:38,
  17.                  from /usr/include/c++/5/iostream:39,
  18.                  from main.cpp:1:
  19. /usr/include/c++/5/bits/stl_algobase.h:219:5: note: candidate: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
  20.      max(const _Tp& __a, const _Tp& __b)
  21.      ^
  22. /usr/include/c++/5/bits/stl_algobase.h:219:5: note:   template argument deduction/substitution failed:
  23. main.cpp:18:60: note:   candidate expects 2 arguments, 0 provided
  24.    input.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
  25.                                                           ^
  26. In file included from /usr/include/c++/5/bits/char_traits.h:39:0,
  27.                  from /usr/include/c++/5/ios:40,
  28.                  from /usr/include/c++/5/ostream:38,
  29.                  from /usr/include/c++/5/iostream:39,
  30.                  from main.cpp:1:
  31. /usr/include/c++/5/bits/stl_algobase.h:265:5: note: candidate: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
  32.      max(const _Tp& __a, const _Tp& __b, _Compare __comp)
  33.      ^
  34. /usr/include/c++/5/bits/stl_algobase.h:265:5: note:   template argument deduction/substitution failed:
  35. main.cpp:18:60: note:   candidate expects 3 arguments, 0 provided
  36.    input.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
  37.                                                           ^
  38. bash: line 2: ./a.out: No such file or directo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement