Borderou de evaluare (job #766623)

Utilizator avatar RaMiDra Dragulescu Rares Mihai RaMiDra IP ascuns
Problemă Cuart (clasa a 5-a) Compilator c-32
Rundă Tema 28 Clasa a 5-a Status evaluat
Dată 5 mar. 2024 22:05:12 Scor 75

Raport evaluator

Compilare: main.c: In function 'main': main.c:138:18: warning: statement with no effect [-Wunused-value] 138 | a==nr; | ~^~~~ main.c:343:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 343 | fprintf( fout, "%d", cnt2); | ~^ ~~~~ | | | | int long long int | %lld main.c:347:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 347 | fprintf(fout, "%d", cnt1); | ~^ ~~~~ | | | | int long long int | %lld main.c:357:33: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 357 | fprintf(fout, "%d", a); | ~^ ~ | | | | int long long int | %lld main.c:360:33: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 360 | fprintf(fout, "%d", b); | ~^ ~ | | | | int long long int | %lld main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf( fin, "%lld%lld", &c, &n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:20:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | fscanf( fin, "%lld", &x); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:84:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 84 | fscanf( fin, "%lld", &x); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:235:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 235 | fscanf( fin, "%lld", &x); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:199:19: warning: 'a' may be used uninitialized [-Wmaybe-uninitialized] 199 | if(a>b){ | ^ main.c:8:83: note: 'a' was declared here 8 | long long c, n, i, max, x, cnt1, cnt2, cx, cf, nr, sum, y, p10, max2, b1, b2, a, b; | ^ main.c:199:19: warning: 'b' may be used uninitialized [-Wmaybe-uninitialized] 199 | if(a>b){ | ^ main.c:8:86: note: 'b' was declared here
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 5
2 1 ms 245 kb OK 5
3 1 ms 245 kb OK 5
4 1 ms 245 kb OK 5
5 1 ms 507 kb Incorect 0
6 1 ms 245 kb OK 5
7 1 ms 507 kb OK 5
8 1 ms 245 kb OK 5
9 1 ms 245 kb Incorect 0
10 1 ms 245 kb OK 5
11 3 ms 139 kb OK 5
12 1 ms 266 kb OK 5
13 1 ms 507 kb OK 5
14 1 ms 266 kb OK 5
15 1 ms 249 kb Incorect 0
16 1 ms 249 kb Incorect 0
17 1 ms 266 kb OK 5
18 1 ms 245 kb OK 5
19 1 ms 249 kb OK 5
20 99 ms 249 kb Incorect 0
Punctaj total 75