Borderou de evaluare (job #640732)

Utilizator avatar BunaLaInfo ...... BunaLaInfo IP ascuns
Problemă Factori (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 13 mar. 2022 23:21:42 Scor 100

Raport evaluator

Compilare: main.c: In function 'CitesteNumar': main.c:36:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 36 | scanf("%lu", &N); | ^~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:70:3: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result] 70 | freopen("factori.in", "r", stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:71:3: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result] 71 | freopen("factori.out", "w", stdout); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c: In function 'TabelPrime': main.c:16:34: warning: iteration 60000 invokes undefined behavior [-Waggressive-loop-optimizations] 16 | for (i=1; i<=MAX; i++) Prime[i]=TRUE; | ^ main.c:16:14: note: within this loop 16 | for (i=1; i<=MAX; i++) Prime[i]=TRUE; | ^ main.c:16:34: warning: '__builtin_memset' forming offset 60001 is out of the bounds [0, 60001] of object 'Prime' with type 'char[60001]' [-Warray-bounds] 16 | for (i=1; i<=MAX; i++) Prime[i]=TRUE; | ^ main.c:9:6: note: 'Prime' declared here 9 | char Prime[MAX]; | ^~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 4 ms 245 kb OK 10
3 2 ms 237 kb OK 10
4 8 ms 208 kb OK 10
5 2 ms 241 kb OK 10
6 1 ms 241 kb OK 10
7 1 ms 241 kb OK 10
8 1 ms 237 kb OK 10
9 13 ms 167 kb OK 10
10 1 ms 241 kb OK 10
Punctaj total 100