Pagini recente » Borderou de evaluare (job #633174) | Borderou de evaluare (job #2043942) | Borderou de evaluare (job #2143097) | Borderou de evaluare (job #2374580) | Borderou de evaluare (job #3120391)
Borderou de evaluare (job #3120391)
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 |
1 | 0ms | 303kb | Incorect | 0 |
2 | 0ms | 303kb | Incorect | 0 |
3 | 0ms | 303kb | Incorect | 0 |
4 | 0ms | 303kb | OK | 10 |
5 | 0ms | 303kb | OK | 10 |
6 | 0ms | 303kb | Incorect | 0 |
7 | 0ms | 303kb | Incorect | 0 |
8 | 0ms | 303kb | Incorect | 0 |
9 | 0ms | 303kb | Incorect | 0 |
10 | 0ms | 303kb | Incorect | 0 |
Punctaj total | 20 |