Borderou de evaluare (job #3203833)

Utilizator themathcoderPerhaita Raul-Cosmin themathcoder Data 14 februarie 2024 19:20:40
Problema Tastatură defectă Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:16:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 16 | for(int i=0;i<=strlen(s);i++) | ~^~~~~~~~~~~ main.cpp:17:24: warning: array subscript has type 'char' [-Wchar-subscripts] 17 | fr1[s[i]]++; | ~~~^ main.cpp:18:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 18 | for(int i=0;i<=strlen(t);i++) | ~^~~~~~~~~~~ main.cpp:19:24: warning: array subscript has type 'char' [-Wchar-subscripts] 19 | fr2[t[i]]++; | ~~~^ main.cpp:20:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 20 | for(int i=0;i<=strlen(s);i++) | ~^~~~~~~~~~~ main.cpp:22:27: warning: array subscript has type 'char' [-Wchar-subscripts] 22 | if(fr1[s[i]]!=fr2[s[i]]&&fr1[s[i]]!=0) | ~~~^ main.cpp:22:38: warning: array subscript has type 'char' [-Wchar-subscripts] 22 | if(fr1[s[i]]!=fr2[s[i]]&&fr1[s[i]]!=0) | ~~~^ main.cpp:22:49: warning: array subscript has type 'char' [-Wchar-subscripts] 22 | if(fr1[s[i]]!=fr2[s[i]]&&fr1[s[i]]!=0) | ~~~^ main.cpp:24:24: warning: array subscript has type 'char' [-Wchar-subscripts] 24 | fr1[s[i]]=fr2[s[i]]=0; | ~~~^ main.cpp:24:34: warning: array subscript has type 'char' [-Wchar-subscripts] 24 | fr1[s[i]]=fr2[s[i]]=0; | ~~~^ main.cpp:26:15: warning: array subscript has type 'char' [-Wchar-subscripts] 26 | x[++index]=nr; | ^~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK100
Punctaj total100

Ceva nu functioneaza?