Record Detail

Accepted

prepare (1/3): 
finished

make (2/3): 
cc -c main.c
main.c: In function 'main':
main.c:73:39: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
     qsort(es, m, sizeof(struct Edge), cp_w);
                                       ^~~~
In file included from main.c:1:0:
/usr/include/stdlib.h:827:13: note: expected '__compar_fn_t {aka int (*)(const void *, const void *)}' but argument is of type 'int (*)(void *, void *)'
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
             ^~~~~
main.c:82:39: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
     qsort(es, m, sizeof(struct Edge), cp_u);
                                       ^~~~
In file included from main.c:1:0:
/usr/include/stdlib.h:827:13: note: expected '__compar_fn_t {aka int (*)(const void *, const void *)}' but argument is of type 'int (*)(void *, void *)'
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
             ^~~~~
cc -o main main.o
finished

clean (3/3): 
finished

all task finished, build successfully
# Status Time Cost Memory Cost
#1 Accepted Detail 1ms 1020.0 KiB
#2 Accepted Detail 1ms 1020.0 KiB
#3 Accepted Detail 1ms 1.125 MiB
#4 Accepted Detail 1ms 1.004 MiB
#5 Accepted Detail 1ms 1.004 MiB

Information

Submit By
Type
Submission
Homework
Lab 2
Language
GNU Make
Submit At
2022-10-13 23:19:59
Judged At
2022-10-13 23:19:59
Judged By
Score
50
Total Time
8ms
Peak Memory
1.125 MiB