Borderou de evaluare (job #693386)

Utilizator avatar AlexStoican Alexandru Andrei Stoican AlexStoican IP ascuns
Problemă Trei (clasa a 10-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 5 feb. 2023 14:45:06 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:19:24: warning: unused variable 'j' [-Wunused-variable] 19 | int n, p, i, a, b, j, c = 0; | ^ main.c:26:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 26 | fscanf( fin, "%d%d", &n, &p ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:28:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 28 | fscanf( fin, "%d%d", &a, &b ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:23:22: warning: iteration 999999 invokes undefined behavior [-Waggressive-loop-optimizations] 23 | treinumar[i] = verificareTnr( i ); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ main.c:22:20: note: within this loop 22 | for ( i = 1; i <= INTERVAL_MAX; i++ ) | ^ main.c:25:22: warning: iteration 999998 invokes undefined behavior [-Waggressive-loop-optimizations] 25 | treinumar[i] += treinumar[i-1]; | ^~ main.c:24:20: note: within this loop 24 | for ( i = 2; i <= INTERVAL_MAX; i++ ) | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 56 ms 4177 kb OK 10
2 56 ms 4182 kb OK 10
3 60 ms 4173 kb OK 10
4 54 ms 4173 kb OK 10
5 63 ms 4177 kb OK 10
6 72 ms 4177 kb OK 10
7 65 ms 4173 kb OK 10
8 62 ms 4177 kb OK 10
9 69 ms 4177 kb OK 10
10 58 ms 4173 kb OK 10
Punctaj total 100