Borderou de evaluare (job #689769)

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:27:19 Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:29:22: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} and 'int' [-Wsign-compare] 29 | if(n - 1 != -1 && n != cifra.size() - 1){ | ~~~~~~^~~~~ main.cpp:36:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 36 | if(e + 2 != cifra.size()){ | ~~~~~~^~~~~~~~~~~~~~~ main.cpp:40:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 40 | if(e + 1 != cifra.size()){ | ~~~~~~^~~~~~~~~~~~~~~ main.cpp:49:65: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 49 | if((cifra[e - 1] != '+' && cifra[e - 1] != '-' && e != cifra.size() - 1)){ | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:51:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 51 | if(e + 2 != cifra.size()){ | ~~~~~~^~~~~~~~~~~~~~~ main.cpp:55:38: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare] 55 | if(e + 1 != cifra.size()){ | ~~~~~~^~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 114 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 245 kb OK 10
6 9 ms 1163 kb Memory limit exceeded 0
7 12 ms 507 kb Incorect 0
8 23 ms 2744 kb Memory limit exceeded 0
9 8 ms 1892 kb Memory limit exceeded 0
10 15 ms 2347 kb Memory limit exceeded 0
Punctaj total 10