Borderou de evaluare (job #2984755)

Utilizator imihaibBuleu Mihai imihaib Data 24 februarie 2023 20:20:44
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:28:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 28 | for(int i=0;i<strlen(s);++i)if(s[i]==' '){strcpy(s+i,s+i+1);i--;} | ~^~~~~~~~~~ main.cpp:29:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 29 | for(int i=0;i<strlen(t);++i)if(t[i]==' '){strcpy(t+i,t+i+1);i--;} | ~^~~~~~~~~~ main.cpp:37:24: warning: 'char* strncat(char*, const char*, size_t)' output may be truncated copying 1 byte from a string of length 2000 [-Wstringop-truncation] 37 | strncat(a,t,1); | ~~~~~~~^~~~~~~ main.cpp:40:19: warning: 'char* strcpy(char*, const char*)' accessing 1 byte at offsets 0 and [0, 2001] may overlap 1 byte at offset 0 [-Wrestrict] 40 | strcpy(t,t+lit_t); | ~~~~~~^~~~~~~~~~~ main.cpp:41:19: warning: 'char* strcpy(char*, const char*)' accessing 1 byte at offsets 0 and [0, 2001] may overlap 1 byte at offset 0 [-Wrestrict] 41 | strcpy(s,s+lit_s); | ~~~~~~^~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms184kbIncorect0
Punctaj total0

Ceva nu functioneaza?