Borderou de evaluare (job #1043866)

Utilizator Lucian-GeorgeFMI Popa Lucian George Lucian-George Data 28 noiembrie 2013 23:33:58
Problema Sortare prin comparare Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:16:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d",&n); ^ user.cpp:21:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long unsigned int*’ [-Wformat=] fscanf(f,"%d",&v[i]); ^ user.cpp:35:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (a[j]<min) {min=a[j]; poz=j;} ^ user.cpp:36:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"%d ",min); ^ user.cpp:42:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (v[j]==min && ok==1) {v[j]=maxim; ok=0;} ^ user.cpp:43:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if (v[j]<m) m=v[j]; ^ user.cpp:41:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if (j<=n) ^ user.cpp:11:11: warning: unused variable ‘x’ [-Wunused-variable] long i,n,x,q,min,poz,m,ok,j,l,lung; ^ user.cpp:11:30: warning: unused variable ‘l’ [-Wunused-variable] long i,n,x,q,min,poz,m,ok,j,l,lung; ^ user.cpp:39:14: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized] for (j=(poz-1)*q+1; j<=poz*q; j++) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms416kbOK520
20ms412kbOK5
30ms416kbOK5
40ms412kbOK5
54ms420kbOK520
64ms416kbOK5
74ms416kbOK5
84ms416kbOK5
9184ms808kbIncorect00
10164ms804kbOK5
11172ms800kbOK5
12176ms808kbOK5
13Depăşit1764kbTime limit exceeded.00
14880ms1780kbIncorect0
15Depăşit1764kbTime limit exceeded.0
16900ms1784kbIncorect0
17Depăşit2348kbTime limit exceeded.00
18Depăşit2348kbTime limit exceeded.0
19Depăşit2348kbTime limit exceeded.0
20Depăşit2348kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?