Borderou de evaluare (job #722494)

Utilizator avatar Emre Isleam Emre Emre IP ascuns
Problemă Imprimanta (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 31 mai 2023 18:01:36 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:17:13: warning: array subscript has type 'char' [-Wchar-subscripts] 17 | if(v[c] < min){ | ^ main.c:18:20: warning: array subscript has type 'char' [-Wchar-subscripts] 18 | min = v[c]; | ^ main.c:21:13: warning: array subscript has type 'char' [-Wchar-subscripts] 21 | if(v[c] == min && c > f) | ^ main.c:12:13: warning: unused variable 'n' [-Wunused-variable] 12 | int k,i,n = 0,min = 14,f,r,ca; | ^ main.c:27:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 27 | fscanf(fin,"%d",&k); | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:906, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:26:5: /usr/include/bits/stdio2.h:79:10: warning: 'f' may be used uninitialized [-Wmaybe-uninitialized] 79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 80 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:12:28: note: 'f' was declared here 12 | int k,i,n = 0,min = 14,f,r,ca; | ^
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 245 kb OK 10
3 59 ms 319 kb OK 10
4 1 ms 245 kb OK 10
5 1 ms 241 kb a) OK; b) OK 10
6 1 ms 245 kb OK 10
7 2 ms 245 kb OK 10
8 1 ms 245 kb a) OK; b) OK 10
9 1 ms 245 kb OK 10
10 1 ms 245 kb OK 10
Punctaj total 100