Borderou de evaluare (job #689772)

Utilizator avatar Razvan_C Cisteian Razvan Ioan Razvan_C IP ascuns
Problemă Numere (clasele 7 - 8) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 23 ian. 2023 12:33:26 Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:27:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 27 | if(n - 1 != -1 && n != cifra.size() - 1){ | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:28:66: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 28 | if((cifra[n-1] != '+' && cifra[n-1] != '-') || n != cifra.size() - 1){ | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:34:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 34 | if(e + 2 != cifra.size()){ | ~~~~~~^~~~~~~~~~~~~~~ main.cpp:38:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 38 | if(e + 1 != cifra.size()){ | ~~~~~~^~~~~~~~~~~~~~~ main.cpp:47:65: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 47 | if((cifra[e - 1] != '+' && cifra[e - 1] != '-' && e != cifra.size() - 1)){ | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:49:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 49 | if(e + 2 != cifra.size()){ | ~~~~~~^~~~~~~~~~~~~~~ main.cpp:53:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 53 | if(e + 1 != cifra.size()){ | ~~~~~~^~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 110 kb Incorect 0
2 1 ms 114 kb Incorect 0
3 1 ms 114 kb Incorect 0
4 1 ms 110 kb Incorect 0
5 1 ms 241 kb OK 10
6 15 ms 1167 kb Memory limit exceeded 0
7 15 ms 503 kb Incorect 0
8 19 ms 1560 kb Memory limit exceeded 0
9 15 ms 2285 kb Memory limit exceeded 0
10 11 ms 2351 kb Memory limit exceeded 0
Punctaj total 10