Borderou de evaluare (job #2576819)
Utilizator | Data | 6 martie 2020 23:22:03 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:20:28: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]' (did you forget the '()' ?)
if (str1.length()>str2.length)
~~~~~^~~~~~
main.cpp:26:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=1;i<str1.length();++i)
~^~~~~~~~~~~~~~
main.cpp:31:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<str1.length();++i)
~^~~~~~~~~~~~~~
main.cpp:44:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=str1.length();i<str2.length();++i)
~^~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !