Borderou de evaluare (job #1710924)

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

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
10ms272kbCorect10
20ms272kbCorect10
30ms312kbCost incorect0
44ms320kbCost incorect0
512ms368kbCost incorect0
6Depăşit2132kbTime limit exceeded.0
7Depăşit3360kbTime limit exceeded.0
8Depăşit1372kbTime limit exceeded.0
9Depăşit1276kbTime limit exceeded.0
10Depăşit2988kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?