Borderou de evaluare (job #584405)

Utilizator avatar andreic06 calota andrei andreic06 IP ascuns
Problemă Extratereștri (clasa a 8-a) Compilator cpp-32
Rundă OJI (clasa a 8-a) Status evaluat
Dată 4 mar. 2021 16:12:12 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:17:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 17 | fscanf ( fin, "%d%d", &n, &k ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:20:14: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 20 | fscanf ( fin, "%d%d%d%d%d", &lx, &cx, &ly, &cy, &nr ); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:30:14: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 30 | fscanf ( fin, "%d", &lx ); | ~~~~~~~^~~~~~~~~~~~~~~~~~ main.cpp:26:15: warning: iteration 1999999 invokes undefined behavior [-Waggressive-loop-optimizations] 26 | mars[i] += mars[i-1]; /// sume partiale | ~~~~~~~~^~~~~~~~~~~~ main.cpp:25:19: note: within this loop 25 | for ( i = 1; i <= MAXCOR; i ++ ) | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 23 ms 8253 kb OK 5
2 23 ms 8253 kb OK 5
3 15 ms 6815 kb OK 5
4 28 ms 7860 kb OK 5
5 32 ms 8253 kb OK 5
6 34 ms 8253 kb OK 5
7 36 ms 8257 kb OK 5
8 35 ms 7991 kb OK 5
9 39 ms 8257 kb OK 5
10 56 ms 8388 kb OK 5
11 48 ms 8384 kb OK 5
12 64 ms 8388 kb OK 5
13 53 ms 8388 kb OK 5
14 57 ms 8384 kb OK 5
15 56 ms 8388 kb OK 5
16 67 ms 8388 kb OK 5
17 61 ms 8384 kb OK 5
18 65 ms 8384 kb OK 5
19 74 ms 8380 kb OK 5
20 17 ms 7340 kb OK 5
Punctaj total 100