Pagini recente » Borderou de evaluare (job #1295601) | Borderou de evaluare (job #153038) | Borderou de evaluare (job #376685) | Borderou de evaluare (job #1999568) | Borderou de evaluare (job #1710942)
Borderou de evaluare (job #1710942)
Raport evaluator
Compilare:
user.cpp: In function ‘void kruskal(muchie*, long int*, long int, long int)’:
user.cpp:55:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
fprintf(fout, "%d\n", newNrMuchii);
^
user.cpp:58:60: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
fprintf(fout, "%d %d\n", newArb[i].varf2, newArb[i].varf1);
^
user.cpp:58:60: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=]
user.cpp:32:18: warning: unused variable ‘k’ [-Wunused-variable]
int set1, set2, k;
^
user.cpp: In function ‘int main()’:
user.cpp:77:103: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
while ((fscanf(fp, "%d%d%d", &muchii[nrMuchii].varf1, &muchii[nrMuchii].varf2, &muchii[nrMuchii].cost)) != EOF)
^
user.cpp:77:103: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=]
user.cpp:77:103: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long int*’ [-Wformat=]
user.cpp:74:7: warning: unused variable ‘i’ [-Wunused-variable]
long i, nrNoduri = 0;
^
user.cpp:76: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);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 252kb | Cost incorect | 0 |
2 | 0ms | 252kb | Corect | 10 |
3 | 0ms | 256kb | Corect | 10 |
4 | 0ms | 260kb | Corect | 10 |
5 | 0ms | 256kb | Cost incorect | 0 |
6 | Depăşit | 1872kb | Time limit exceeded. | 0 |
7 | Depăşit | 3212kb | Time limit exceeded. | 0 |
8 | Depăşit | 884kb | Time limit exceeded. | 0 |
9 | 56ms | 928kb | Corect | 10 |
10 | Depăşit | 2808kb | Time limit exceeded. | 0 |
Punctaj total | 40 |