Borderou de evaluare (job #3203626)

Utilizator _Lucas_Iftinca Lucas _Lucas_ Data 14 februarie 2024 08:37:48
Problema Tastatură defectă Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 0

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
10ms303kbIncorect0
Punctaj total0

Ceva nu functioneaza?