Borderou de evaluare (job #706929)

Utilizator avatar andreifilimon Popescu Filimon Andrei Cosmin andreifilimon IP ascuns
Problemă Tcif (clasa a 8-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 14 mar. 2023 16:49:16 Scor 35

Raport evaluator

Compilare: main.c: In function 'main': main.c:20:19: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[1001]' [-Wformat=] 20 | fscanf(fin, "%s", &s); | ~^ ~~ | | | | | char (*)[1001] | char * main.c:19:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 19 | fscanf(fin, "%d%d%d%d%d%d", &a[0], &a[1], &a[2], &cif[0], &cif[1], &cif[2]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:20:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | fscanf(fin, "%s", &s); | ^~~~~~~~~~~~~~~~~~~~~ main.c:80:18: warning: array subscript -1 is below array bounds of 'int[3]' [-Warray-bounds] 80 | a[c]--; | ~^~~ main.c:5:29: note: while referencing 'a' 5 | int t[MAXD+1], sol[MAXD+1], a[3], cif[3]; | ^ main.c:80:18: warning: array subscript -1 is below array bounds of 'int[3]' [-Warray-bounds] 80 | a[c]--; | ~^~~ main.c:5:29: note: while referencing 'a' 5 | int t[MAXD+1], sol[MAXD+1], a[3], cif[3]; | ^ main.c:87:29: warning: 'k' may be used uninitialized [-Wmaybe-uninitialized] 87 | sol[i++]=k; | ~~~~~~~~^~
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 245 kb OK 5
6 1 ms 245 kb Incorect 0
7 1 ms 245 kb Incorect 0
8 1 ms 245 kb Incorect 0
9 1 ms 245 kb Incorect 0
10 1 ms 245 kb Incorect 0
11 1 ms 245 kb Incorect 0
12 1 ms 245 kb Incorect 0
13 1 ms 245 kb Incorect 0
14 1 ms 245 kb Incorect 0
15 1 ms 245 kb Incorect 0
16 1 ms 245 kb Incorect 0
17 1 ms 241 kb Incorect 0
18 1 ms 245 kb Incorect 0
19 1 ms 245 kb OK 5
20 1 ms 245 kb OK 5
Punctaj total 35