Borderou de evaluare (job #2790475)

Utilizator LukyenDracea Lucian Lukyen Data 29 octombrie 2021 02:33:28
Problema Risipa Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int rest_mod_3()': main.cpp:63:19: 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 < suma.length(); i++) | ~~^~~~~~~~~~~~~~~ main.cpp: In function 'void rest0()': main.cpp:79:10: warning: statement has no effect [-Wunused-value] 79 | for (i; i < suma.length(); i++) | ^ main.cpp:79:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 79 | for (i; i < suma.length(); i++) | ~~^~~~~~~~~~~~~~~ main.cpp: In function 'void rest1()': main.cpp:92:33: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 92 | string temp = suma.length() >= nr_cifa ? suma.substr(suma.length()-nr_cifa, nr_cifa) : suma; | ~~~~~~~~~~~~~~^~~~~~~~~~ main.cpp:95:23: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 95 | if (suma.length() <= nr_cifa) | ~~~~~~~~~~~~~~^~~~~~~~~~ main.cpp:91:9: warning: unused variable 'cif' [-Wunused-variable] 91 | int cif, rest, sum; | ^~~ main.cpp: In function 'void rest2()': main.cpp:132:33: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 132 | string temp = suma.length() >= nr_cifb ? suma.substr(suma.length()-nr_cifb, nr_cifa) : suma; | ~~~~~~~~~~~~~~^~~~~~~~~~ main.cpp:135:23: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 135 | if (suma.length() <= nr_cifb) | ~~~~~~~~~~~~~~^~~~~~~~~~ main.cpp:131:9: warning: unused variable 'cif' [-Wunused-variable] 131 | int cif, rest = 0, sum; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbOK10
26ms307kbKilled by Signal 110
31ms184kbIncorect0
41ms184kbIncorect0
52ms184kbKilled by Signal 110
63ms184kbIncorect0
712ms307kbIncorect0
81ms184kbIncorect0
912ms286kbIncorect0
1012ms307kbIncorect0
Punctaj total10

Ceva nu functioneaza?