Borderou de evaluare (job #821152)

Utilizator avatar Roby2206 Staicu Robert Roby2206 IP ascuns
Problemă Wind (clasa a 7-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 21 apr. 2025 13:04:03 Scor 95

Raport evaluator

Compilare: main.c: In function 'main': main.c:12:24: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'int *' [-Wformat=] 12 | fscanf(fin,"%lld",&v[i]); | ~~~^ ~~~~~ | | | | | int * | long long int * | %d main.c:48:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] 48 | printf("%d %d ",max,min); | ~^ ~~~ | | | | int long long int | %lld main.c:48:29: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 48 | printf("%d %d ",max,min); | ~^ ~~~ | | | | int long long int | %lld main.c:7:81: warning: variable 'mmmax' set but not used [-Wunused-but-set-variable] 7 | long long int n,i,s,max,mx,mn,min,fact,mmin=99999,c,cnt=0,val,val1,j,mmax=0,mmmax=0; | ^~~~~ main.c:7:39: warning: unused variable 'fact' [-Wunused-variable] 7 | long long int n,i,s,max,mx,mn,min,fact,mmin=99999,c,cnt=0,val,val1,j,mmax=0,mmmax=0; | ^~~~ main.c:7:32: warning: unused variable 'mn' [-Wunused-variable] 7 | long long int n,i,s,max,mx,mn,min,fact,mmin=99999,c,cnt=0,val,val1,j,mmax=0,mmmax=0; | ^~ main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin,"%lld%lld",&c,&n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:12:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin,"%lld",&v[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:970, from main.c:1: In function 'fprintf', inlined from 'main' at main.c:56:9: /usr/include/bits/stdio2.h:111:10: warning: 'val' may be used uninitialized [-Wmaybe-uninitialized] 111 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 112 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'main': main.c:7:63: note: 'val' was declared here 7 | long long int n,i,s,max,mx,mn,min,fact,mmin=99999,c,cnt=0,val,val1,j,mmax=0,mmmax=0; | ^~~ In function 'fprintf', inlined from 'main' at main.c:56:9:
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb Pomana (pentru ca un scor de 0p nu arata asa bine ca un scor de 10p) 10
2 39 ms 512 kb OK 4
3 49 ms 512 kb OK 4
4 1 ms 249 kb OK 4
5 49 ms 532 kb OK 4
6 9 ms 245 kb OK 4
7 39 ms 507 kb OK 5
8 1 ms 245 kb OK 5
9 27 ms 503 kb OK 5
10 9 ms 512 kb OK 5
11 39 ms 507 kb OK 5
12 1 ms 245 kb OK 5
13 219 ms 507 kb a) incorect; b) incorect 0
14 61 ms 647 kb OK 5
15 549 ms 512 kb OK 5
16 539 ms 512 kb OK 5
17 1 ms 245 kb OK 4
18 1 ms 245 kb OK 4
19 1 ms 245 kb OK 4
20 1 ms 245 kb OK 4
21 1 ms 266 kb OK 4
Punctaj total 95