1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
proj3.cc: In function ‘void provideHelpIfNecessary()’:
proj3.cc:98:16: error: ‘numeric_limits’ is not a member of ‘std’
cin.ignore(std::numeric_limits<std::stream_size>::max());
^
proj3.cc:98:36: error: ‘stream_size’ is not a member of ‘std’
cin.ignore(std::numeric_limits<std::stream_size>::max());
^
proj3.cc:98:59: error: no matching function for call to ‘max()’
cin.ignore(std::numeric_limits<std::stream_size>::max());
^
proj3.cc:98:59: note: candidates are:
In file included from /usr/include/c++/4.8.2/bits/char_traits.h:39:0,
from /usr/include/c++/4.8.2/ios:40,
from /usr/include/c++/4.8.2/ostream:38,
from /usr/include/c++/4.8.2/iostream:39,
from proj3.cc:17:
/usr/include/c++/4.8.2/bits/stl_algobase.h:216:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.8.2/bits/stl_algobase.h:216:5: note: template argument deduction/substitution failed:
proj3.cc:98:59: note: candidate expects 2 arguments, 0 provided
cin.ignore(std::numeric_limits<std::stream_size>::max());
^
In file included from /usr/include/c++/4.8.2/bits/char_traits.h:39:0,
from /usr/include/c++/4.8.2/ios:40,
from /usr/include/c++/4.8.2/ostream:38,
from /usr/include/c++/4.8.2/iostream:39,
from proj3.cc:17:
/usr/include/c++/4.8.2/bits/stl_algobase.h:260:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/4.8.2/bits/stl_algobase.h:260:5: note: template argument deduction/substitution failed:
proj3.cc:98:59: note: candidate expects 3 arguments, 0 provided
cin.ignore(std::numeric_limits<std::stream_size>::max());
^
|