Borderou de evaluare (job #756186)

Utilizator avatar Gavriliu.Adam Adam Gavriliu Robert Gavriliu.Adam IP ascuns
Problemă Cifre1 (clasa a 5-a) Compilator c-32
Rundă Concurs 03 | IQ Academy | clasa a 5-a Status evaluat
Dată 20 ian. 2024 11:23:08 Scor 10

Raport evaluator

Compilare: main.c: In function 'main': main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf(fin, "%d%d", &a, &b); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:54:13: warning: array subscript 10 is above array bounds of 'int[10]' [-Warray-bounds=] 54 | while (v[10] > 0) { | ~^~~~ main.c:4:5: note: while referencing 'v' 4 | int v[10]; | ^ main.c:56:10: warning: array subscript 10 is above array bounds of 'int[10]' [-Warray-bounds=] 56 | v[10]--; | ~^~~~ main.c:4:5: note: while referencing 'v' 4 | int v[10]; | ^ main.c:56:10: warning: array subscript 10 is above array bounds of 'int[10]' [-Warray-bounds=] 56 | v[10]--; | ~^~~~ main.c:4:5: note: while referencing 'v' 4 | int v[10]; | ^ main.c:43:12: warning: 'cfa' may be used uninitialized [-Wmaybe-uninitialized] 43 | v[cfa] = 0; | ~~~~~~~^~~ main.c:8:23: note: 'cfa' was declared here 8 | int a, b, ca, cb, cfa, cfb, d10, x; | ^~~ main.c:42:12: warning: 'cfb' may be used uninitialized [-Wmaybe-uninitialized] 42 | v[cfb] = 0; | ~~~~~~~^~~ main.c:8:28: note: 'cfb' was declared here 8 | int a, b, ca, cb, cfa, cfb, d10, x; | ^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Raspuns incorect la punctul (a) 0
2 1 ms 245 kb Raspuns incorect la punctul (b) 5
3 1 ms 245 kb Raspuns incorect la punctul (a) 0
4 2 ms 245 kb Raspuns incorect la punctul (a) 0
5 1 ms 245 kb Raspuns incorect la punctul (a) 0
6 1 ms 245 kb Raspuns incorect la punctul (a) 0
7 2 ms 233 kb Raspuns incorect la punctul (b) 5
8 3 ms 405 kb Raspuns incorect la punctul (a) 0
9 1 ms 245 kb Raspuns incorect la punctul (a) 0
10 1 ms 245 kb Raspuns incorect la punctul (a) 0
Punctaj total 10