1 2 3 4 5 6 7
| test.cpp: In function 'int main()':
test.cpp:16: error: invalid conversion from 'const char*' to 'char*'
test.cpp:16: error: initializing argument 1 of 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(_CharT*, std::streamsize, _CharT) [with _CharT = char, _Traits = std::char_traits<char>]'
test.cpp:17: error: expected 'while' before 'c1'
test.cpp:17: error: expected '(' before 'c1'
test.cpp:17: error: could not convert 'c1. std::vector<_Tp, _Alloc>::push_back [with _Tp = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Alloc = std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >](((const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)((const std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)(& recup))))' to 'bool'
test.cpp:17: error: expected ')' before ';' token |
Partager