Pagini recente » Borderou de evaluare (job #734127) | Borderou de evaluare (job #1954980) | Borderou de evaluare (job #108688) | Borderou de evaluare (job #2803342) | Borderou de evaluare (job #2984754)
Borderou de evaluare (job #2984754)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
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(s);++i)if(s[i]==' '){strcpy(s+i,s+i+1);i--;}
| ~^~~~~~~~~~
main.cpp:30:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
30 | for(int i=0;i<strlen(t);++i)if(t[i]==' '){strcpy(t+i,t+i+1);i--;}
| ~^~~~~~~~~~
main.cpp:36:24: warning: 'char* strncat(char*, const char*, size_t)' output may be truncated copying 1 byte from a string of length 2000 [-Wstringop-truncation]
36 | strncat(a,t,1);
| ~~~~~~~^~~~~~~
main.cpp:39:19: warning: 'char* strcpy(char*, const char*)' accessing 1 byte at offsets 0 and [0, 2001] may overlap 1 byte at offset 0 [-Wrestrict]
39 | strcpy(t,t+lit_t);
| ~~~~~~^~~~~~~~~~~
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(s,s+lit_s);
| ~~~~~~^~~~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 184kb | Incorect | 0 |
Punctaj total | 0 |