Borderou de evaluare (job #616952)

Utilizator avatar vasilegorgan Vasile vasilegorgan IP ascuns
Problemă Cifre7 (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 19 nov. 2021 23:25:56 Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:25:16: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations] 25 | v1[i]=0; | ~~~~~^~ main.cpp:24:18: note: within this loop 24 | for(i=0;i<=9;i++) { | ~^~~ main.cpp:44:16: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations] 44 | if(v1[i]<v2[i] && v2[i]>1) vd[i]=v1[i]; | ~~~~^ main.cpp:41:16: note: within this loop 41 | for(i=0;i<=9;i++){ | ~^~~ main.cpp:51:17: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations] 51 | while(vd[i]>0){ | ~~~~^ main.cpp:50:14: note: within this loop 50 | for(i=0;i<=9;i++){ | ~^~~ main.cpp:25:16: warning: 'void* __builtin_memset(void*, int, unsigned int)' forming offset [36, 39] is out of the bounds [0, 36] of object 'v1' with type 'int [9]' [-Warray-bounds] 25 | v1[i]=0; | ~~~~~^~ main.cpp:9:5: note: 'v1' declared here 9 | int v1[9]; | ^~ main.cpp:26:17: warning: 'void* __builtin_memset(void*, int, unsigned int)' forming offset [36, 39] is out of the bounds [0, 36] of object 'v2' with type 'int [9]' [-Warray-bounds] 26 | v2[i]=0; | ~~~~~^~ main.cpp:10:5: note: 'v2' declared here 10 | int v2[9]; | ^~ main.cpp:27:18: warning: 'void* __builtin_memset(void*, int, unsigned int)' forming offset [36, 39] is out of the bounds [0, 36] of object 'vd' with type 'int [9]' [-Warray-bounds] 27 | vd[i]=0; | ~~~~~^~ main.cpp:11:5: note: 'vd' declared here 11 | int vd[9]; | ^~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 131 kb OK 5
2 1 ms 131 kb Incorect 0
3 1 ms 131 kb Incorect 0
4 1 ms 131 kb Incorect 0
5 1 ms 131 kb Incorect 0
6 1 ms 131 kb Incorect 0
7 1 ms 131 kb Incorect 0
8 1 ms 131 kb Incorect 0
9 1 ms 131 kb Incorect 0
10 1 ms 131 kb Incorect 0
11 1 ms 131 kb Incorect 0
12 1 ms 131 kb Incorect 0
13 1 ms 131 kb Incorect 0
14 9 ms 131 kb Incorect 0
15 1 ms 131 kb OK 5
16 1 ms 131 kb Incorect 0
17 1 ms 131 kb Incorect 0
18 1 ms 131 kb Incorect 0
19 8 ms 131 kb Incorect 0
20 1 ms 131 kb Incorect 0
Punctaj total 10