Pagini recente » Borderou de evaluare (job #2342794) | Borderou de evaluare (job #80939) | Borderou de evaluare (job #1223998) | Borderou de evaluare (job #370900) | Borderou de evaluare (job #1710933)
Borderou de evaluare (job #1710933)
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 |
1 | 0ms | 252kb | Corect | 10 |
2 | 0ms | 260kb | Corect | 10 |
3 | 0ms | 264kb | Corect | 10 |
4 | 0ms | 268kb | Corect | 10 |
5 | 0ms | 264kb | Corect | 10 |
6 | 116ms | 1912kb | Corect | 10 |
7 | 204ms | 3504kb | Corect | 10 |
8 | 40ms | 904kb | Corect | 10 |
9 | 48ms | 936kb | Corect | 10 |
10 | 180ms | 2960kb | Corect | 10 |
Punctaj total | 100 |