Borderou de evaluare (job #1710931)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:55: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:55:75: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:55:75: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long int*’ [-Wformat=] user.cpp:74: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:74:48: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:77: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:77:60: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:52: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:55: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
10ms276kbCorect10
20ms268kbCorect10
30ms308kbCorect10
44ms320kbCorect10
512ms368kbCorect10
6Depăşit2168kbTime limit exceeded.0
7Depăşit3292kbTime limit exceeded.0
8Depăşit1232kbTime limit exceeded.0
9Depăşit1488kbTime limit exceeded.0
10Depăşit2892kbTime limit exceeded.0
Punctaj total50

Ceva nu functioneaza?