Borderou de evaluare (job #718917)

Utilizator avatar David_Radavoi David Radavoi David_Radavoi IP ascuns
Problemă Divizor (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 11 mai 2023 18:30:40 Scor 20

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:9:21: warning: unused variable 'ndiv' [-Wunused-variable] 9 | int N, ver = 0, ndiv, nrd = 0, divp, ct; | ^~~~ main.cpp:32:30: warning: iteration 6 invokes undefined behavior [-Waggressive-loop-optimizations] 32 | v[i] = 0; | ~~~~~^~~ main.cpp:31:39: note: within this loop 31 | for (int i = 1; i <= 7; i++) | ~~^~~~ main.cpp:32:28: warning: array subscript 7 is above array bounds of 'int [7]' [-Warray-bounds] 32 | v[i] = 0; | ~~~^ main.cpp:6:5: note: while referencing 'v' 6 | int v[7]; | ^ main.cpp:9:36: warning: 'divp' may be used uninitialized [-Wmaybe-uninitialized] 9 | int N, ver = 0, ndiv, nrd = 0, divp, ct; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Incorect 0
2 1 ms 245 kb Incorect 0
3 1 ms 245 kb Incorect 0
4 1 ms 245 kb Incorect 0
5 1 ms 245 kb Incorect 0
6 1 ms 245 kb OK 10
7 1 ms 245 kb Incorect 0
8 1 ms 245 kb OK 10
9 1 ms 241 kb Incorect 0
10 9 ms 249 kb Incorect 0
Punctaj total 20