Pagini recente » Borderou de evaluare (job #2162015) | Borderou de evaluare (job #723411) | Borderou de evaluare (job #2079173) | Borderou de evaluare (job #2847013) | Borderou de evaluare (job #2892097)
Borderou de evaluare (job #2892097)
Raport evaluator
Compilare:
main.c: In function 'readGraph':
main.c:65:3: warning: 'return' with no value, in function returning non-void [-Wreturn-type]
65 | return;
| ^~~~~~
main.c:60:7: note: declared here
60 | graph readGraph(const char* filename) {
| ^~~~~~~~~
main.c:66:14: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long int *' [-Wformat=]
66 | fscanf(f, "%d %d\n", &newGraph.numNodes, &newGraph.numEdges);
| ~^ ~~~~~~~~~~~~~~~~~~
| | |
| int * long int *
| %ld
main.c:66:17: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'long int *' [-Wformat=]
66 | fscanf(f, "%d %d\n", &newGraph.numNodes, &newGraph.numEdges);
| ~^ ~~~~~~~~~~~~~~~~~~
| | |
| int * long int *
| %ld
main.c:83:15: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long int *' [-Wformat=]
83 | fscanf(f, "%d %d %d\n", &aux_i, &aux_j, &cost);
| ~^ ~~~~~~
| | |
| int * long int *
| %ld
main.c:83:18: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'long int *' [-Wformat=]
83 | fscanf(f, "%d %d %d\n", &aux_i, &aux_j, &cost);
| ~^ ~~~~~~
| | |
| int * long int *
| %ld
main.c:83:21: warning: format '%d' expects argument of type 'int *', but argument 5 has type 'long int *' [-Wformat=]
83 | fscanf(f, "%d %d %d\n", &aux_i, &aux_j, &cost);
| ~^ ~~~~~
| | |
| int * long int *
| %ld
main.c: In function 'dijkstra':
main.c:119:50: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
119 | qsort(priorityQueue, queueIndex, sizeof(list), cmpList);
| ^~~~~~~
| |
| long int (*)(const void *, const void *)
In file included from main.c:3:
/usr/include/stdlib.h:831:20: note: expected '__compar_fn_t' {aka 'int (*)(const void *, const void *)'} but argument is of type 'long int (*)(const void *, const void *)'
831 | __compar_fn_t __compar) __nonnull ((1, 4));
| ~~~~~~~~~~~~~~^~~~~~~~
main.c:128:19: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
128 | fprintf(out, "%d ", NDP[i].d);
| ~^ ~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1ms | 184kb | OK | 10 |
2 | 1ms | 184kb | OK | 10 |
3 | 16ms | 4349kb | Incorect | 0 |
4 | 16ms | 7933kb | Killed by Signal 11 | 0 |
5 | 25ms | 12308kb | Memory limit exceeded | 0 |
6 | 36ms | 12304kb | Memory limit exceeded | 0 |
7 | 36ms | 12304kb | Memory limit exceeded | 0 |
8 | 40ms | 12308kb | Memory limit exceeded | 0 |
9 | 46ms | 12308kb | Memory limit exceeded | 0 |
10 | 36ms | 12308kb | Memory limit exceeded | 0 |
Punctaj total | 20 |