Borderou de evaluare (job #1252643)

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

Raport evaluator

Compilare: user.cpp: In function ‘void introd_in_arb(long int)’: user.cpp:60:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<l[k].size();i++) ^ user.cpp:59:12: warning: unused variable ‘j’ [-Wunused-variable] long i,j; ^ user.cpp: In function ‘int main()’: user.cpp:74: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:74:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:77: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:77:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:77:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long int*’ [-Wformat=] user.cpp:110:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"%d\n%d\n",sum,n-1); ^ user.cpp:110:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:111:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<r.size();i++) ^ user.cpp:112:45: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"%d %d\n",r[i].c,r[i].dest); ^ user.cpp:112:45: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:72:12: warning: unused variable ‘j’ [-Wunused-variable] long i,j,m,x,y,sum=0,n; ^ user.cpp:74: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:77: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); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms2620kbCorect10
24ms2620kbCorect10
34ms2632kbCost incorect0
44ms2632kbCost incorect0
54ms2640kbCost incorect0
6140ms6160kbCost incorect0
7312ms9088kbCost incorect0
852ms4064kbCost incorect0
948ms4140kbCost incorect0
10252ms8100kbCost incorect0
Punctaj total20

Ceva nu functioneaza?