Pagini recente » Borderou de evaluare (job #1690373) | Borderou de evaluare (job #576889) | Borderou de evaluare (job #3275023) | Borderou de evaluare (job #816803) | Borderou de evaluare (job #3281981)
Borderou de evaluare (job #3281981)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:19:25: warning: array subscript has type 'char' [-Wchar-subscripts]
19 | vf[cmp[j]]++;
| ~~~~~^
main.cpp:30:27: warning: iteration 2005 invokes undefined behavior [-Waggressive-loop-optimizations]
30 | a[i] = cmp[i] = 0;
| ~~~~~~~^~~
main.cpp:29:25: note: within this loop
29 | for(int i = 0; i<=2005; i++)
| ~^~~~~~
main.cpp:30:27: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 2005 is out of the bounds [0, 2005] of object 'cmp' with type 'char [2005]' [-Warray-bounds]
30 | a[i] = cmp[i] = 0;
| ~~~~~~~^~~
main.cpp:9:15: note: 'cmp' declared here
9 | char a[2005], cmp[2005], vf[305];
| ^~~
main.cpp:30:18: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 2005 is out of the bounds [0, 2005] of object 'a' with type 'char [2005]' [-Warray-bounds]
30 | a[i] = cmp[i] = 0;
| ~~~~~^~~~~~~~~~~~
main.cpp:9:6: note: 'a' declared here
9 | char a[2005], cmp[2005], vf[305];
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | Incorect | 0 |
Punctaj total | 0 |