Borderou de evaluare (job #420323)

Utilizator avatar anam1321 Ana Secrieru anam1321 IP ascuns
Problemă Text (clasa 9) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 16 ian. 2019 13:27:24 Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:11:18: error: no matching function for call to ‘getline(std::ifstream&, std::string [500])’ user.cpp:11:18: note: candidates are: /usr/include/i386-linux-gnu/bits/stdio.h:116:1: note: __ssize_t getline(char**, size_t*, FILE*) /usr/include/i386-linux-gnu/bits/stdio.h:116:1: note: candidate expects 3 arguments, 2 provided /usr/include/c++/4.6/bits/basic_string.h:2734: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.6/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) user.cpp:15:22: error: no matching function for call to ‘getline(std::ifstream&, std::string [500])’ user.cpp:15:22: note: candidates are: /usr/include/i386-linux-gnu/bits/stdio.h:116:1: note: __ssize_t getline(char**, size_t*, FILE*) /usr/include/i386-linux-gnu/bits/stdio.h:116:1: note: candidate expects 3 arguments, 2 provided /usr/include/c++/4.6/bits/basic_string.h:2734: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.6/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) user.cpp:16:22: error: request for member ‘size’ in ‘s1’, which is of non-class type ‘std::string [500] {aka std::basic_string<char> [500]}’ user.cpp:22:26: error: request for member ‘size’ in ‘s1’, which is of non-class type ‘std::string [500] {aka std::basic_string<char> [500]}’ user.cpp:22:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] user.cpp:25:32: error: no match for ‘operator==’ in ‘s1[(poz + 1)] == ' '’ user.cpp:25:32: note: candidates are: /usr/include/c++/4.6/bits/unordered_set.h:387:5: note: template<class _Value, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>&, const std::unordered_multiset<_Value, _Hash, _Pred, _Alloc>&) /usr/include/c++/4.6/bits/unordered_set.h:375:5: note: template<class _Value, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_set<_Value, _Hash, _Pred, _Alloc>&, const std::unordered_set<_Value, _Hash, _Pred, _Alloc>&) /usr/include/c++/4.6/bits/unordered_set.h:215:5: note: template<class _Value, class _Hash, class _Pred, class _Alloc, bool __cache_hash_code> bool std::operator==(const std::__unordered_multiset<_Value, _Hash, _Pred, _Alloc, __cache_hash_code>&, const std::__unordered_multiset<_Value, _Hash, _Pred, _Alloc, __cache_hash_code>&) /usr/include/c++/4.6/bits/unordered_set.h:197:5: note: template<class _Value, class _Hash, class _Pred, class _Alloc, bool __cache_hash_code> bool std::operator==(const std::__unordered_set<_Value, _Hash, _Pred, _Alloc, __cache_hash_code>&, const std::__unordered_set<_Value, _Hash, _Pred, _Alloc, __cache_hash_code>&) /usr/include/c++/4.6/bits/unordered_map.h:396:5: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>&, const std::unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>&) /usr/include/c++/4.6/bits/unordered_map.h:384:5: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> bool std::operator==(const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&, const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&) /usr/include/c++/4.6/bits/unordered_map.h:219:5: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc, bool __cache_hash_code> bool std::operator==(const std::__unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc, __cache_hash_code>&, const std::__unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc, __cache_hash_code>&) /usr/include/c++/4.6/bits/unordered_map.h:201:5: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc, bool __cache_hash_code> bool std::operator==(const std::__unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc, __cache_hash_code>&, const std::__unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc, __cache_hash_code>&) /usr/include/c++/4.6/bits/regex.h:1844:5: note: template<class _Bi_iter, class _Allocator> bool std::operator==(const std::match_results<_FwdIterT, _Alloc>&, const std::match_results<_FwdIterT, _Alloc>&) /usr/include/c++/4.6/bits/regex.h:1338:5: note: template<class _Bi_iter> bool std::operator==(const std::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&) /usr/include/c++/4.6/bits/regex.h:1258:5: note: template<class _Bi_iter> bool std::operator==(const typename std::iterator_traits<_Iter>::value_type&, const std::sub_match<_BiIter>&) /usr/include/c++/4.6/bits/regex.h:1184:5: note: template<class _Bi_iter> bool std::operator==(const std::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type*) /usr/include/c++/4.6/bits/regex.h:1110:5: note: template<class _Bi_iter> bool std::operator==(const typename std::iterator_traits<_Iter>::value_type*, const std::sub_match<_BiIter>&) /usr/include/c++/4.6/bits/regex.h:1024:5: note: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::operator==(const std::sub_match<_Bi_iter>&, const std::basic_string<typename std::iterator_traits<_II1>::value_type, _Ch_traits, _Ch_alloc>&) /usr/include/c++/4.6/bits/regex.h:943:5: note: template<class _Bi_iter, class _Ch_traits, class _Ch_alloc> bool std::operator==(const std::basic_string<typename std::iterator_traits<_II1>::value_type, _Ch_traits, _Ch_alloc>&, const std::sub_match<_Bi_iter>&) /usr/include/c++/4.6/bits/regex.h:870:5: note: template<class _BiIter> bool std::operator==(const std::sub_match<_BiIter>&, const std::sub_match<_BiIter>&) /usr/include/c++/4.6/bits/forward_list.tcc:379:5: note: template<class _Tp, class _Alloc> bool std::operator==(const std::forward_list<_Tp, _Alloc>&, const std::forward_list<_Tp, _Alloc>&) /usr/include/c++/4.6/bits/forward_list.h:256:5: note: template<class _Tp> bool std::operator==(const std::_Fwd_list_iterator<_Tp>&, const std::_Fwd_list_const_iterator<_Tp>&) /usr/include/c++/4.6/system_error:279:3: note: bool std::operator==(const std::error_condition&, const std::error_condition&) /usr/include/c++/4.6/system_error:279:3: note: no known conversion for argument 1 from ‘std::string {aka std::basic_string<char>}’ to ‘const std::error_condition&’ /usr/include/c++/4.6/system_error:272:3: note: bool std::operator==(const std::error_condition&, const std::error_code&) /usr/include/c++/4.6/system_error:272:3: note: no known conversion for argument 1 from ‘std::string {aka std::basic_string<char>}’ to ‘const std::error_condition&’ /usr/include/c++/4.6/system_error:265:3: note: bool std::operator==(const std::error_code&, const std::error_condition&) /usr/include/c++/4.6/system_error:265:3: note: no known conversion for argument 1 from ‘std::string {aka std::basic_string<char>}’ to ‘const std::error_code&’ /usr/include/c++/4.6/system_error:260:3: note: bool std::operator==(const std::error_code&, const std::error_code&) /usr/include/c++/4.6/system_error:260:3: note: no known conversion for argument 1 from ‘std::string {aka std::basic_string<char>}’ to ‘const std::error_code&’ /usr/include/c++/4.6/array:200:5: note: template<class _Tp, unsigned int _Nm> bool std::operator==(const std::array<_Tp, _Nm>&, const std::array<_Tp, _Nm>&) /usr/include/c++/4.6/valarray:1109:1: note: template<class _Tp> std::_Expr<std::_BinClos<std::__equal_to, std::_Constant, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__equal_to, _Tp>::result_type> std::operator==(const _Tp&, const std::valarray<_Tp>&) /usr/include/c++/4.6/valarray:1109:1: note: template<class _Tp> std::_Expr<std::_BinClos<std::__equal_to, std::_ValArray, std::_Constant, _Tp, _Tp>, typename std::__fun<std::__equal_to, _Tp>::result_type> std::operator==(const std::valarray<_Tp>&, const _Tp&) /usr/include/c++/4.6/valarray:1109:1: note: template<class _Tp> std::_Expr<std::_BinClos<std::__equal_to, std::_ValArray, std::_ValArray, _Tp, _Tp>, typename std::__fun<std::__equal_to, _Tp>::result_type> std::operator==(const std::valarray<_Tp>&, const std::valarray<_Tp>&) /usr/include/c++/4.6/bits/valarray_after.h:415:5: note: template<class _Dom> std::_Expr<std::_BinClos<std::__equal_to, std::_ValArray, std::_Expr, typename _Dom::value_type, _Dom>, typename std::__fun<std::__equal_to, typename _Dom::value_type>::result_type> std::operator==(const std::valarray<typename _Dom::value_type>&, const std::_Expr<_Dom, typename _Dom::value_type>&) /usr/include/c++/4.6/bits/valarray_after.h:415:5: note: template<class _Dom> std::_Expr<std::_BinClos<std::__equal_to, std::_Expr, std::_ValArray, _Dom, typename _Dom::value_type>, typename std::__fun<std::__equal_to, typename _Dom::value_type>::result_type> std::operator==(const std::_Expr<_Dom, typename _Dom::value_type>&, const std::valarray<typename _Dom::value_type>&)