Borderou de evaluare (job #2793572)
Utilizator | Data | 3 noiembrie 2021 19:08:44 | |
---|---|---|---|
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 makehash(std::string)':
main.cpp:12:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for (i = 0; i < a.size(); i++)
| ~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:54:11: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() 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 '()' ?)
54 | if (a.size <= b.size())
| ~~^~~~
| ()
main.cpp:58:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | for (i = 0; i < a.size() - 1; i++)
| ~~^~~~~~~~~~~~~~
main.cpp:63:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for (i = 0; i < b.size() - a.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~
main.cpp:51:25: warning: unused variable 'cnt' [-Wunused-variable]
51 | int ha = 0, hb = 0, cnt = 0, i, p = 0;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !