Pagini recente » Borderou de evaluare (job #2500374) | Borderou de evaluare (job #1320000) | Borderou de evaluare (job #2427453) | Borderou de evaluare (job #808305) | Borderou de evaluare (job #3203626)
Borderou de evaluare (job #3203626)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:21:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
21 | for (int i = 0; i < strlen(s); i++) ap1[s[i]]++;
| ~~^~~~~~~~~~~
main.cpp:21:52: warning: array subscript has type 'char' [-Wchar-subscripts]
21 | for (int i = 0; i < strlen(s); i++) ap1[s[i]]++;
| ~~~^
main.cpp:22:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
22 | for (int i = 0; i < strlen(t); i++) ap2[t[i]]++;
| ~~^~~~~~~~~~~
main.cpp:22:52: warning: array subscript has type 'char' [-Wchar-subscripts]
22 | for (int i = 0; i < strlen(t); i++) ap2[t[i]]++;
| ~~~^
main.cpp:23:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
23 | for (int i = 0; i < strlen(s); i++)
| ~~^~~~~~~~~~~
main.cpp:25:24: warning: array subscript has type 'char' [-Wchar-subscripts]
25 | if (ap1[s[i]] == ap2[s[i]] / 2)
| ~~~^
main.cpp:25:37: warning: array subscript has type 'char' [-Wchar-subscripts]
25 | if (ap1[s[i]] == ap2[s[i]] / 2)
| ~~~^
main.cpp:28:24: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | ap1[s[i]] = 1;
| ~~~^
main.cpp:29:24: warning: array subscript has type 'char' [-Wchar-subscripts]
29 | ap2[s[i]] = 1;
| ~~~^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | Incorect | 0 |
Punctaj total | 0 |