Borderou de evaluare (job #2853035)

Utilizator pifaDumitru Andrei Denis pifa Data 19 februarie 2022 20:11:55
Problema Interesant Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool ok(std::string, std::string)': main.cpp:17:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 17 | while(j < a.size()) | ~~^~~~~~~~~~ main.cpp:19:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 19 | if(b[i] == a[j] && i < b.size()) | ~~^~~~~~~~~~ main.cpp:22:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 22 | if(i == b.size()) | ~~^~~~~~~~~~~ main.cpp: In function 'bool continut(std::string, std::vector<std::__cxx11::basic_string<char> >)': main.cpp:36:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 36 | for(int i = 0; i < v.size(); i++) | ~~^~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:50:14: error: expected ')' before 'int' 50 | out.tie(0 | ~ ^ | ) 51 | int p; | ~~~ main.cpp:52:19: error: 'p' was not declared in this scope 52 | in >> p; | ^ main.cpp:64:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 64 | for(int i = 0; i < v.size(); i++) | ~~^~~~~~~~~~ main.cpp:66:28: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 66 | if(v[i].size() > maxim) | ~~~~~~~~~~~~^~~~~~~ main.cpp:72:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 72 | for(int i = 0; i < v.size(); i++) | ~~^~~~~~~~~~ main.cpp:74:28: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 74 | if(v[i].size() == maxim) | ~~~~~~~~~~~~^~~~~~~~ main.cpp:86:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 86 | for(int i = 0; i < v.size(); i++) | ~~^~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?