Pagini recente » Borderou de evaluare (job #2640248) | Borderou de evaluare (job #1853140) | Borderou de evaluare (job #1416274) | Borderou de evaluare (job #1568292) | Borderou de evaluare (job #3216711)
Borderou de evaluare (job #3216711)
Raport evaluator
Compilare:
main.cpp: In function 'void rez(char*, char*)':
main.cpp:29:30: warning: array subscript has type 'char' [-Wchar-subscripts]
29 | if(nr_b > nr_a && fr[val] == false)
| ^~~
main.cpp:31:16: warning: array subscript has type 'char' [-Wchar-subscripts]
31 | fr[val] = true;
| ^~~
main.cpp:12:15: warning: iteration 999 invokes undefined behavior [-Waggressive-loop-optimizations]
12 | fr[i] = false;
| ~~~~~~^~~~~~~
main.cpp:10:22: note: within this loop
10 | for(int i = 1; i <= 1000; ++i)
| ~~^~~~~~~
main.cpp:12:15: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 1000 is out of the bounds [0, 1000] of object 'fr' with type 'bool [1000]' [-Warray-bounds]
12 | fr[i] = false;
| ~~~~~~^~~~~~~
main.cpp:6:6: note: 'fr' declared here
6 | bool fr[1000];
| ^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | OK | 100 |
Punctaj total | 100 |