Borderou de evaluare (job #1252661)

Utilizator danyro364Savu Ioan Daniel danyro364 Data 30 octombrie 2014 23:22:56
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void introd_in_arb(long int)’: user.cpp:61:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<l[k].size();i++) ^ user.cpp:60:12: warning: unused variable ‘j’ [-Wunused-variable] long i,j; ^ user.cpp: In function ‘int main()’: user.cpp:76:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d %d",&n,&m); ^ user.cpp:76:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:79:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d %d %d",&x,&aux.dest,&aux.c); ^ user.cpp:79:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:79:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long int*’ [-Wformat=] user.cpp:111:26: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%ld\n",sum); ^ user.cpp:113:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<r.size();i++) ^ user.cpp:73:12: warning: unused variable ‘j’ [-Wunused-variable] long i,j,m,x,y,n; ^ user.cpp:76:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&n,&m); ^ user.cpp:79:49: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d %d",&x,&aux.dest,&aux.c); ^ user.cpp: In function ‘void coboara(long int)’: user.cpp:31:22: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized] long ok,mini=inf,poz; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms2624kbCorect10
24ms2624kbCorect10
34ms2640kbCorect10
44ms2636kbCorect10
54ms2648kbCorect10
6152ms6160kbCorect10
7368ms9084kbCorect10
852ms4076kbCorect10
948ms4148kbCorect10
10280ms8108kbCorect10
Punctaj total100

Ceva nu functioneaza?