Borderou de evaluare (job #2839574)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:27:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for (int i = 0; i < s1.size(); i++)
| ~~^~~~~~~~~~~
main.cpp:31:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for (int i = 0; i < s2.size(); i++)
| ~~^~~~~~~~~~~
main.cpp:45:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for (int i = 0; i < s1.size(); i++)
| ~~^~~~~~~~~~~
main.cpp:63:38: warning: array subscript has type 'char' [-Wchar-subscripts]
63 | av -= ((f2[pos[i]] > f1[pos[i]] - 1) ? 1 : 0);
| ^
main.cpp:63:51: warning: array subscript has type 'char' [-Wchar-subscripts]
63 | av -= ((f2[pos[i]] > f1[pos[i]] - 1) ? 1 : 0);
| ^
main.cpp:71:38: warning: array subscript has type 'char' [-Wchar-subscripts]
71 | av -= ((f2[pos[i]] > f1[pos[i]] - 1) ? 1 : 0)
| ^
main.cpp:71:51: warning: array subscript has type 'char' [-Wchar-subscripts]
71 | av -= ((f2[pos[i]] > f1[pos[i]] - 1) ? 1 : 0)
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | Nu este o anagrama. | 0 |
2 | 2ms | 184kb | Lungimea sirului nu este buna. | 0 |
3 | 2ms | 184kb | Lungimea sirului nu este buna. | 0 |
4 | 189ms | 1110kb | Lungimea sirului nu este buna. | 0 |
5 | 2ms | 184kb | Nu este o anagrama. | 0 |
6 | 16ms | 331kb | Nu este o anagrama. | 0 |
7 | 184ms | 1122kb | Nu este o anagrama. | 0 |
8 | 40ms | 864kb | Nu este o anagrama. | 0 |
9 | 122ms | 1781kb | Nu este o anagrama. | 0 |
10 | 117ms | 1388kb | Lungimea sirului nu este buna. | 0 |
11 | 64ms | 917kb | Nu este o anagrama. | 0 |
12 | 117ms | 1888kb | Nu este o anagrama. | 0 |
Punctaj total | 0 |