Borderou de evaluare (job #2842541)
Utilizator | Data | 1 februarie 2022 09:57:06 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool check(std::string&, std::string&, long long int)':
main.cpp:53:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | while ( i < b.size() && i + poz < a.size() && a[i + poz] == b[i] ) {
| ~~^~~~~~~~~~
main.cpp:53:37: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | while ( i < b.size() && i + poz < a.size() && a[i + poz] == b[i] ) {
| ~~~~~~~~^~~~~~~~~~
main.cpp:56:14: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | return i == b.size();
| ~~^~~~~~~~~~~
main.cpp: In function 'long long int search(std::string&, std::string&)':
main.cpp:69:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
69 | while ( i < query.size() ) {
| ~~^~~~~~~~~~~~~~
At global scope:
cc1plus: error: '::main' must return 'int'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !