Borderou de evaluare (job #613224)

Utilizator avatar Zluca.jmecher Zamfir Luca Cristian Zluca.jmecher IP ascuns
Problemă Intervale Compilator c-32
Rundă Tema 7 clasa a 7-a Status evaluat
Dată 29 oct. 2021 21:41:30 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:27:24: warning: array subscript has type 'char' [-Wchar-subscripts] 27 | nrdivizori[ciur[i]]++; | ~~~~^~~ main.c:33:10: warning: unused variable 'ch' [-Wunused-variable] 33 | char ch, a; | ^~ main.c:16:21: warning: unused variable 'cop' [-Wunused-variable] 16 | int x, y, i, d, cop; | ^~~ main.c:16:12: warning: unused variable 'y' [-Wunused-variable] 16 | int x, y, i, d, cop; | ^ main.c:16:9: warning: unused variable 'x' [-Wunused-variable] 16 | int x, y, i, d, cop; | ^ main.c:45:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 45 | fscanf(fin, "%d%d", &b, &k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:27:24: warning: iteration 1000000 invokes undefined behavior [-Waggressive-loop-optimizations] 27 | nrdivizori[ciur[i]]++; | ~~~~^~~ main.c:25:5: note: within this loop 25 | for(i = 0; i <= MAX; i++) | ^~~ main.c:29:39: warning: iteration 50 invokes undefined behavior [-Waggressive-loop-optimizations] 29 | divizori[i][d] = nrdivizori[d]; | ~~~~~~~~~~^~~ main.c:28:9: note: within this loop 28 | for(d = 0; d <= DIV; d++) | ^~~ main.c:29:27: warning: '__builtin_memcpy' forming offset [100, 101] is out of the bounds [0, 100] of object 'nrdivizori' with type 'short int[50]' [-Warray-bounds] 29 | divizori[i][d] = nrdivizori[d]; | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ main.c:9:7: note: 'nrdivizori' declared here 9 | short nrdivizori[DIV]; | ^~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 134 ms 44302 kb Memory limit exceeded 0
2 139 ms 45740 kb Memory limit exceeded 0
3 135 ms 44298 kb Memory limit exceeded 0
4 135 ms 44171 kb Memory limit exceeded 0
5 138 ms 45608 kb Memory limit exceeded 0
6 133 ms 43642 kb Memory limit exceeded 0
7 135 ms 44171 kb Memory limit exceeded 0
8 134 ms 43253 kb Memory limit exceeded 0
9 134 ms 43773 kb Memory limit exceeded 0
10 136 ms 46006 kb Memory limit exceeded 0
Penalizare: 9% (pentru 3 submisie/ii) 9%
Punctaj total 0