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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
inputappointments.cpp: In function âVector<String> read_file(std::istream&)â:
inputappointments.cpp:27:20: error: âstd::istreamâ has no member named âc_strâ
inputappointments.cpp:30:45: error: invalid user-defined conversion from âstd::istream {aka std::basic_istream<char>}â to âintâ [-fpermissive]
In file included from /usr/include/c++/4.7/ios:45:0,
from /usr/include/c++/4.7/ostream:40,
from /usr/include/c++/4.7/iterator:64,
from /usr/include/c++/4.7/regex:44,
from std_lib_facilities_3.h:28,
from inputappointments.cpp:18:
/usr/include/c++/4.7/bits/basic_ios.h:113:7: note: candidate is: std::basic_ios<_CharT, _Traits>::operator void*() const [with _CharT = char; _Traits = std::char_traits<char>] <near match>
/usr/include/c++/4.7/bits/basic_ios.h:113:7: note: no known conversion for implicit âthisâ parameter from âvoid*â to âintâ
inputappointments.cpp:43:56: error: no matching function for call to âremove_if(std::basic_string<char>::iterator, std::basic_string<char>::iterator, <unresolved overloaded function type>)â
inputappointments.cpp:43: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, class _Predicate> _FIter std::remove_if(_FIter, _FIter, _Predicate)
/usr/include/c++/4.7/bits/stl_algo.h:1160:5: note: template argument deduction/substitution failed:
inputappointments.cpp:43:56: note: couldn't deduce template parameter â_Predicateâ
inputappointments.cpp:46:66: error: no matching function for call to âremove_if(std::basic_string<char>::iterator, std::basic_string<char>::iterator, <unresolved overloaded function type>)â
inputappointments.cpp:46: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, class _Predicate> _FIter std::remove_if(_FIter, _FIter, _Predicate)
/usr/include/c++/4.7/bits/stl_algo.h:1160:5: note: template argument deduction/substitution failed:
inputappointments.cpp:46:66: note: couldn't deduce template parameter â_Predicateâ
inputappointments.cpp: In function âVector<int> read_file1(std::istream&)â:
inputappointments.cpp:58:20: error: âstd::istreamâ has no member named âc_strâ
inputappointments.cpp:61:45: error: invalid user-defined conversion from âstd::istream {aka std::basic_istream<char>}â to âintâ [-fpermissive]
In file included from /usr/include/c++/4.7/ios:45:0,
from /usr/include/c++/4.7/ostream:40,
from /usr/include/c++/4.7/iterator:64,
from /usr/include/c++/4.7/regex:44,
from std_lib_facilities_3.h:28,
from inputappointments.cpp:18:
/usr/include/c++/4.7/bits/basic_ios.h:113:7: note: candidate is: std::basic_ios<_CharT, _Traits>::operator void*() const [with _CharT = char; _Traits = std::char_traits<char>] <near match>
/usr/include/c++/4.7/bits/basic_ios.h:113:7: note: no known conversion for implicit âthisâ parameter from âvoid*â to âintâ
inputappointments.cpp:70:22: error: no matching function for call to âgetline(std::istream&, int&)â
inputappointments.cpp:70: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 provided
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 _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&)
/usr/include/c++/4.7/bits/basic_string.h:2792:5: note: template argument deduction/substitution failed:
inputappointments.cpp:70:22: note: mismatched types âstd::basic_string<_CharT, _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 _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::getline(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&, _CharT)
/usr/include/c++/4.7/bits/basic_string.tcc:1070:5: note: template argument deduction/substitution failed:
inputappointments.cpp:70:22: note: mismatched types âstd::basic_string<_CharT, _Traits, _Alloc>â and âintâ
inputappointments.cpp:72:8: error: request for member âeraseâ in âlineâ, which is of non-class type âintâ
inputappointments.cpp:73:27: error: request for member âbeginâ in âlineâ, which is of non-class type âintâ
inputappointments.cpp:73:41: error: request for member âendâ in âlineâ, which is of non-class type âintâ
inputappointments.cpp:74:8: error: request for member âendâ in âlineâ, which is of non-class type âintâ
inputappointments.cpp:76:10: error: request for member âeraseâ in âlineâ, which is of non-class type âintâ
inputappointments.cpp:76:37: error: request for member âbeginâ in âlineâ, which is of non-class type âintâ
inputappointments.cpp:76:51: error: request for member âendâ in âlineâ, which is of non-class type âintâ
inputappointments.cpp:77:8: error: request for member âendâ in âlineâ, which is of non-class type âintâ
inputappointments.cpp: At global scope:
inputappointments.cpp:91:1: error: expected unqualified-id before â{â token
|