Pagini recente » Borderou de evaluare (job #3205859) | Borderou de evaluare (job #2884307) | Borderou de evaluare (job #3279910) | Borderou de evaluare (job #921118) | Borderou de evaluare (job #3283364)
Borderou de evaluare (job #3283364)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:25:23: warning: array subscript has type 'char' [-Wchar-subscripts]
25 | fr[s[i]]++;
| ~~~^
main.cpp:28:23: warning: array subscript has type 'char' [-Wchar-subscripts]
28 | ap[t[i]]++;
| ~~~^
main.cpp:21:24: warning: iteration 125 invokes undefined behavior [-Waggressive-loop-optimizations]
21 | fr[i]=ap[i]=0;
| ~~~~~^~
main.cpp:19:18: note: within this loop
19 | for(i=0;i<=125;i++)
| ~^~~~~
main.cpp:21:24: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [500, 503] is out of the bounds [0, 500] of object 'ap' with type 'int [125]' [-Warray-bounds]
21 | fr[i]=ap[i]=0;
| ~~~~~^~
main.cpp:7:13: note: 'ap' declared here
7 | int fr[125],ap[125];
| ^~
main.cpp:21:18: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [500, 503] is out of the bounds [0, 500] of object 'fr' with type 'int [125]' [-Warray-bounds]
21 | fr[i]=ap[i]=0;
| ~~~~~^~~~~~~~
main.cpp:7:5: note: 'fr' declared here
7 | int fr[125],ap[125];
| ^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | OK | 100 |
Punctaj total | 100 |