Borderou de evaluare (job #1684631)

Utilizator FernandoSandoiu Fernando Fernando Data 11 aprilie 2016 10:51:00
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘void kruskal(muchie*, long int*, long int, long int)’: user.cpp:78:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(fout, "%d\n", newNrMuchii); ^ user.cpp:81:59: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(fout,"%d %d\n", newArb[i].varf2, newArb[i].varf1); ^ user.cpp:81:59: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:55:17: warning: unused variable ‘k’ [-Wunused-variable] int set1, set2,k; ^ user.cpp: In function ‘int main()’: user.cpp:94:103: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] while ((fscanf(fp, "%d%d%d", &muchii[nrMuchii].varf1, &muchii[nrMuchii].varf2, &muchii[nrMuchii].cost))!=EOF) ^ user.cpp:94:103: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:94:103: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long int*’ [-Wformat=] user.cpp:91:7: warning: unused variable ‘i’ [-Wunused-variable] long i,nrNoduri=0; ^ user.cpp:93:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fp, "%d%d", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbCorect10
20ms276kbCorect10
30ms312kbCorect10
44ms300kbCorect10
512ms368kbCorect10
60ms264kbKilled by signal 11(SIGSEGV).0
70ms260kbKilled by signal 11(SIGSEGV).0
80ms264kbKilled by signal 11(SIGSEGV).0
90ms260kbKilled by signal 11(SIGSEGV).0
100ms264kbKilled by signal 11(SIGSEGV).0
Punctaj total50

Ceva nu functioneaza?