Borderou de evaluare (job #1710933)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:37:75: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(fp, "%d%d%d", &muchii[i].varf1, &muchii[i].varf2, &muchii[i].cost); ^ user.cpp:37:75: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:37:75: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long int*’ [-Wformat=] user.cpp:54:48: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(fout, "%d\n%d\n", maxCost, newNrMuchii); ^ user.cpp:54:48: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:57:60: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(fout, "%d %d\n", newArb[i].varf1, newArb[i].varf2); ^ user.cpp:57:60: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:34: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); ^ user.cpp:37:76: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fp, "%d%d%d", &muchii[i].varf1, &muchii[i].varf2, &muchii[i].cost); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms252kbCorect10
20ms260kbCorect10
30ms264kbCorect10
40ms268kbCorect10
50ms264kbCorect10
6116ms1912kbCorect10
7204ms3504kbCorect10
840ms904kbCorect10
948ms936kbCorect10
10180ms2960kbCorect10
Punctaj total100

Ceva nu functioneaza?