Pagini recente » Cod sursa (job #3261996) | Cod sursa (job #2622940) | Cod sursa (job #331110) | Cod sursa (job #2274651) | Borderou de evaluare (job #1710931)
Borderou de evaluare (job #1710931)
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 |
| 1 | 0ms | 276kb | Corect | 10 |
| 2 | 0ms | 268kb | Corect | 10 |
| 3 | 0ms | 308kb | Corect | 10 |
| 4 | 4ms | 320kb | Corect | 10 |
| 5 | 12ms | 368kb | Corect | 10 |
| 6 | Depăşit | 2168kb | Time limit exceeded. | 0 |
| 7 | Depăşit | 3292kb | Time limit exceeded. | 0 |
| 8 | Depăşit | 1232kb | Time limit exceeded. | 0 |
| 9 | Depăşit | 1488kb | Time limit exceeded. | 0 |
| 10 | Depăşit | 2892kb | Time limit exceeded. | 0 |
| Punctaj total | 50 |