Borderou de evaluare (job #3120391)

Utilizator Luka77Anastase Luca George Luka77 Data 6 aprilie 2023 12:05:20
Problema Text4 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.cpp: In function 'void print(std::string, bool)': main.cpp:18:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 18 | for(int i = 0; i < line.length(); ++ i) | ~~^~~~~~~~~~~~~~~ main.cpp:32:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 32 | for(int i = 0; i < line.length(); ++ i) | ~~^~~~~~~~~~~~~~~ main.cpp: In function 'void format(char*)': main.cpp:52:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 52 | for(int i = 0; i < strlen(s); ++ i) | ~~^~~~~~~~~~~ main.cpp:55:25: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 55 | if(sir.length() == maxi || strlen(s) - 1 == i) | ~~~~~~~~~~~~~^~~~~~~ main.cpp:55:50: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 55 | if(sir.length() == maxi || strlen(s) - 1 == i) | ~~~~~~~~~~~~~~^~~~ main.cpp:59:69: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 59 | while(sir[sir.length() - 1] != ' ' && strlen(s) - 1 != i) | ~~~~~~~~~~~~~~^~~~ main.cpp:61:69: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 61 | while(sir[sir.length() - 1] == ' ' && strlen(s) - 1 != i) | ~~~~~~~~~~~~~~^~~~ main.cpp:64:39: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 64 | print(sir, (strlen(s) - 1 == i)); | ~~~~~~~~~~~~~~^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbIncorect0
30ms303kbIncorect0
40ms303kbOK10
50ms303kbOK10
60ms303kbIncorect0
70ms303kbIncorect0
80ms303kbIncorect0
90ms303kbIncorect0
100ms303kbIncorect0
Punctaj total20

Ceva nu functioneaza?