Borderou de evaluare (job #2892097)

Utilizator Razvan25Leanca Razvan Razvan25 Data 20 aprilie 2022 19:11:18
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 20

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
11ms184kbOK10
21ms184kbOK10
316ms4349kbIncorect0
416ms7933kbKilled by Signal 110
525ms12308kbMemory limit exceeded0
636ms12304kbMemory limit exceeded0
736ms12304kbMemory limit exceeded0
840ms12308kbMemory limit exceeded0
946ms12308kbMemory limit exceeded0
1036ms12308kbMemory limit exceeded0
Punctaj total20

Ceva nu functioneaza?