Borderou de evaluare (job #3160388)
Utilizator | Data | 23 octombrie 2023 21:06:24 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int compute(std::string, long long int, long long int)':
main.cpp:28:24: 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]
28 | for(long long i=0;i<s.length();i++){
| ~^~~~~~~~~~~
At global scope:
cc1plus: error: '::main' must return 'int'
main.cpp: In function 'int main()':
main.cpp:60:24: 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]
60 | for(long long i=0;i<pattern.length();i++){
| ~^~~~~~~~~~~~~~~~~
main.cpp:75:24: 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]
75 | for(long long i=1;i<=str.length()-pattern.length();i++){
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:91:24: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
91 | for(long long i=0;i<v.size();i++){
| ~^~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !