Borderou de evaluare (job #3261543)

Utilizator GrigorasGrigore Alexandru Grigoras Data 6 decembrie 2024 18:25:08
Problema Numere8 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:11:13: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations] 11 | v[i]=0; | ~~~~^~ main.cpp:10:19: note: within this loop 10 | for(int i=1; i<=10; i++) | ~^~~~ main.cpp:26:19: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations] 26 | if(v[i]==1) | ~~~^ main.cpp:25:19: note: within this loop 25 | for(i=1; i<=10; i++) | ~^~~~ main.cpp:43:30: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations] 43 | v1[i]=v[i]; | ~~~^ main.cpp:41:31: note: within this loop 41 | for(int i=1; i<=10; i++) | ~^~~~ main.cpp:11:13: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [40, 43] is out of the bounds [0, 40] of object 'v' with type 'int [10]' [-Warray-bounds] 11 | v[i]=0; | ~~~~^~ main.cpp:7:9: note: 'v' declared here 7 | int v[10],c[11],s1=0,s2=0,smax=0,i,nr=0,v1[11]; | ^ main.cpp:43:26: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' forming offset [40, 43] is out of the bounds [0, 40] of object 'v' with type 'int [10]' [-Warray-bounds] 43 | v1[i]=v[i]; | ~~~~~^~~~~ main.cpp:7:9: note: 'v' declared here 7 | int v[10],c[11],s1=0,s2=0,smax=0,i,nr=0,v1[11]; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms303kbRaspuns corect !!!10
22ms303kbRaspuns corect !!!10
32ms303kbRaspuns corect !!!10
42ms303kbRaspuns corect !!!10
52ms303kbRaspuns corect !!!10
62ms303kbRaspuns corect !!!10
72ms303kbRaspuns corect !!!10
82ms303kbRaspuns corect !!!10
92ms303kbRaspuns corect !!!10
102ms303kbRaspuns corect !!!10
Punctaj total100

Ceva nu functioneaza?