Borderou de evaluare (job #3208311)

Utilizator Manolea_Teodor_StefanManolea Teodor Stefan Manolea_Teodor_Stefan Data 28 februarie 2024 11:31:57
Problema Interesant Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'bool cmp(std::string, std::string)': main.cpp:23:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 23 | for (int i = 0; i < a.size(); i++) { | ~~^~~~~~~~~~ main.cpp: In function 'bool comp(std::string, std::string)': main.cpp:34:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 34 | for (; i <= a.size(); i++) { | ~~^~~~~~~~~~~ main.cpp:37:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 37 | if (j >= b.size()) | ~~^~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:54:27: warning: loop variable 'str' creates a copy from type 'const std::string' {aka 'const std::__cxx11::basic_string<char>'} [-Wrange-loop-construct] 54 | for (const string str : sir) | ^~~ main.cpp:54:27: note: use reference type to prevent copying 54 | for (const string str : sir) | ^~~ | & main.cpp:60:34: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 60 | if (cpySir[i].size() == sz) { | ~~~~~~~~~~~~~~~~~^~~~~ main.cpp:69:27: warning: loop variable 'str' creates a copy from type 'const std::string' {aka 'const std::__cxx11::basic_string<char>'} [-Wrange-loop-construct] 69 | for (const string str : sir) | ^~~ main.cpp:69:27: note: use reference type to prevent copying 69 | for (const string str : sir) | ^~~ | & main.cpp:82:27: warning: loop variable 'str' creates a copy from type 'const std::string' {aka 'const std::__cxx11::basic_string<char>'} [-Wrange-loop-construct] 82 | for (const string str : sir) { | ^~~ main.cpp:82:27: note: use reference type to prevent copying 82 | for (const string str : sir) { | ^~~ | &
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
11ms1081kbOK.520
21ms1343kbOK.5
30ms303kbOK.5
40ms561kbOK.5
50ms303kbOK.33
614ms819kbOK.33
70ms303kbOK.33
814ms819kbOK.33
9103ms2392kbOK.44
1049ms1343kbOK.44
1184ms2129kbOK.44
1264ms2285kbOK.44
1369ms1605kbOK.44
1459ms1605kbOK.55
1539ms1867kbOK.55
16178ms2424kbOK.55
1799ms1605kbOK.55
1834ms2392kbOK.55
1944ms2392kbOK.55
20392ms2392kbOK.66
21407ms2392kbOK.66
2249ms2392kbOK.66
Punctaj total100

Ceva nu functioneaza?