Pagini recente » Borderou de evaluare (job #2096312) | Borderou de evaluare (job #2186735) | Borderou de evaluare (job #1335172) | Borderou de evaluare (job #501425) | Borderou de evaluare (job #1684635)
Borderou de evaluare (job #1684635)
Raport evaluator
Compilare:
user.cpp: In function ‘void kruskal(muchie*, long int*, long int, long int)’:
user.cpp:78:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
fprintf(fout, "%d\n", newNrMuchii);
^
user.cpp:81:59: 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:81:59: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=]
user.cpp:55:17: warning: unused variable ‘k’ [-Wunused-variable]
int set1, set2,k;
^
user.cpp: In function ‘int main()’:
user.cpp:94: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:94:103: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=]
user.cpp:94:103: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long int*’ [-Wformat=]
user.cpp:91:7: warning: unused variable ‘i’ [-Wunused-variable]
long i,nrNoduri=0;
^
user.cpp:93: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 | 264kb | Corect | 10 |
2 | 0ms | 268kb | Corect | 10 |
3 | 0ms | 312kb | Corect | 10 |
4 | 4ms | 308kb | Corect | 10 |
5 | 12ms | 364kb | Corect | 10 |
6 | 4ms | 364kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 4ms | 364kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 4ms | 368kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 4ms | 368kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 4ms | 364kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 50 |