Pagini recente » Borderou de evaluare (job #2446383) | Borderou de evaluare (job #2986969) | Borderou de evaluare (job #3278586) | Borderou de evaluare (job #3234051) | Borderou de evaluare (job #3203625)
Borderou de evaluare (job #3203625)
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 && ap1[s[i]] != 1 && ap2[s[i]] != 1)
| ~~~^
main.cpp:25:37: warning: array subscript has type 'char' [-Wchar-subscripts]
25 | if (ap1[s[i]] == ap2[s[i]] / 2 && ap1[s[i]] != 1 && ap2[s[i]] != 1)
| ~~~^
main.cpp:25:54: warning: array subscript has type 'char' [-Wchar-subscripts]
25 | if (ap1[s[i]] == ap2[s[i]] / 2 && ap1[s[i]] != 1 && ap2[s[i]] != 1)
| ~~~^
main.cpp:25:72: warning: array subscript has type 'char' [-Wchar-subscripts]
25 | if (ap1[s[i]] == ap2[s[i]] / 2 && ap1[s[i]] != 1 && ap2[s[i]] != 1)
| ~~~^
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 |