Borderou de evaluare (job #1710942)

Utilizator FernandoSandoiu Fernando Fernando Data 30 mai 2016 05:38:02
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘void kruskal(muchie*, long int*, long int, long int)’: user.cpp:55:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(fout, "%d\n", newNrMuchii); ^ user.cpp:58:60: 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:58:60: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:32:18: warning: unused variable ‘k’ [-Wunused-variable] int set1, set2, k; ^ user.cpp: In function ‘int main()’: user.cpp:77: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:77:103: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:77:103: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long int*’ [-Wformat=] user.cpp:74:7: warning: unused variable ‘i’ [-Wunused-variable] long i, nrNoduri = 0; ^ user.cpp:76: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
10ms252kbCost incorect0
20ms252kbCorect10
30ms256kbCorect10
40ms260kbCorect10
50ms256kbCost incorect0
6Depăşit1872kbTime limit exceeded.0
7Depăşit3212kbTime limit exceeded.0
8Depăşit884kbTime limit exceeded.0
956ms928kbCorect10
10Depăşit2808kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?