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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
inputappointments.cpp: In function âVector<String> read_file(std::istream&) â:
inputappointments.cpp:54:56: error: no matching function for call to âremov e_if(std::basic_string<char>::iterator, std::basic_string<char>::iterator, <unresolved overloaded function type>)â
inputappointments.cpp:54:56: note: candidate is:
In file included from /usr/include/c++/4.7/algorithm:63:0,
from /usr/include/c++/4.7/regex:38,
from std_lib_facilities_3.h:28,
from inputappointments.cpp:18:
/usr/include/c++/4.7/bits/stl_algo.h:1160:5: note: template<class _FIter, c lass _Predicate> _FIter std::remove_if(_FIter, _FIter, _Predicate)
/usr/include/c++/4.7/bits/stl_algo.h:1160:5: note: template argument dedu ction/substitution failed:
inputappointments.cpp:54:56: note: couldn't deduce template parameter â_P redicateâ
inputappointments.cpp:57:66: error: no matching function for call to âremov e_if(std::basic_string<char>::iterator, std::basic_string<char>::iterator, <unresolved overloaded function type>)â
inputappointments.cpp:57:66: note: candidate is:
In file included from /usr/include/c++/4.7/algorithm:63:0,
from /usr/include/c++/4.7/regex:38,
from std_lib_facilities_3.h:28,
from inputappointments.cpp:18:
/usr/include/c++/4.7/bits/stl_algo.h:1160:5: note: template<class _FIter, c lass _Predicate> _FIter std::remove_if(_FIter, _FIter, _Predicate)
/usr/include/c++/4.7/bits/stl_algo.h:1160:5: note: template argument dedu ction/substitution failed:
inputappointments.cpp:57:66: note: couldn't deduce template parameter â_P redicateâ
inputappointments.cpp: In function âVector<int> read_file1(std::istream&)â:
inputappointments.cpp:82:22: error: no matching function for call to âgetli ne(std::istream&, int&)â
inputappointments.cpp:82:22: note: candidates are:
In file included from /usr/include/c++/4.7/cstdio:44:0,
from /usr/include/c++/4.7/ext/string_conversions.h:39,
from /usr/include/c++/4.7/bits/basic_string.h:2814,
from /usr/include/c++/4.7/string:54,
from /usr/include/c++/4.7/stdexcept:40,
from /usr/include/c++/4.7/array:39,
from std_lib_facilities_3.h:27,
from inputappointments.cpp:18:
/usr/include/stdio.h:675:20: note: __ssize_t getline(char**, size_t*, FILE* )
/usr/include/stdio.h:675:20: note: candidate expects 3 arguments, 2 provi ded
In file included from /usr/include/c++/4.7/string:54:0,
from /usr/include/c++/4.7/stdexcept:40,
from /usr/include/c++/4.7/array:39,
from std_lib_facilities_3.h:27,
from inputappointments.cpp:18:
/usr/include/c++/4.7/bits/basic_string.h:2792:5: note: template<class _Char T, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::g etline(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Tra its, _Alloc>&)
/usr/include/c++/4.7/bits/basic_string.h:2792:5: note: template argument deduction/substitution failed:
inputappointments.cpp:82:22: note: mismatched types âstd::basic_string<_C harT, _Traits, _Alloc>â and âintâ
In file included from /usr/include/c++/4.7/string:55:0,
from /usr/include/c++/4.7/stdexcept:40,
from /usr/include/c++/4.7/array:39,
from std_lib_facilities_3.h:27,
from inputappointments.cpp:18:
/usr/include/c++/4.7/bits/basic_string.tcc:1070:5: note: template<class _Ch arT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std: :getline(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _T raits, _Alloc>&, _CharT)
/usr/include/c++/4.7/bits/basic_string.tcc:1070:5: note: template argumen t deduction/substitution failed:
inputappointments.cpp:82:22: note: mismatched types âstd::basic_string<_C harT, _Traits, _Alloc>â and âintâ
inputappointments.cpp:84:8: error: request for member âeraseâ in âlineâ, wh ich is of non-class type âintâ
inputappointments.cpp:85:27: error: request for member âbeginâ in âlineâ, w hich is of non-class type âintâ
inputappointments.cpp:85:41: error: request for member âendâ in âlineâ, whi ch is of non-class type âintâ
inputappointments.cpp:86:8: error: request for member âendâ in âlineâ, whic h is of non-class type âintâ
inputappointments.cpp:88:10: error: request for member âeraseâ in âlineâ, w hich is of non-class type âintâ
inputappointments.cpp:88:37: error: request for member âbeginâ in âlineâ, w hich is of non-class type âintâ
inputappointments.cpp:88:51: error: request for member âendâ in âlineâ, whi ch is of non-class type âintâ
inputappointments.cpp:89:8: error: request for member âendâ in âlineâ, whic h is of non-class type âintâ
inputappointments.cpp: At global scope:
inputappointments.cpp:103:1: error: expected unqualified-id before â{â toke n
|