Record Detail

Accepted

prepare (1/3): 
finished

make (2/3): 
clang -std=gnu11 -O2 -Wall  -o main main.c UnionFind.c
main.c:91:39: warning: incompatible pointer types passing 'int (const Edge *, const Edge *)' to parameter of type '__compar_fn_t' (aka 'int (*)(const void *, const void *)') [-Wincompatible-pointer-types]
    qsort(graph, eSize, sizeof(Edge), Edge_cmp);
                                      ^~~~~~~~
/usr/include/stdlib.h:828:20: note: passing argument to parameter '__compar' here
                   __compar_fn_t __compar) __nonnull ((1, 4));
                                 ^
main.c:94:35: warning: incompatible pointer types passing 'int (const Edge *, const Edge *)' to parameter of type '__compar_fn_t' (aka 'int (*)(const void *, const void *)') [-Wincompatible-pointer-types]
    qsort(rev, num, sizeof(Edge), cmp2);
                                  ^~~~
/usr/include/stdlib.h:828:20: note: passing argument to parameter '__compar' here
                   __compar_fn_t __compar) __nonnull ((1, 4));
                                 ^
2 warnings generated.
main successfully constructed
finished

clean (3/3): 
finished

all task finished, build successfully
# Status Time Cost Memory Cost
#1 Accepted Detail 2ms 372.0 KiB
#2 Accepted Detail 2ms 212.0 KiB
#3 Accepted Detail 2ms 340.0 KiB
#4 Accepted Detail 1ms 376.0 KiB
#5 Accepted Detail 1ms 212.0 KiB

Information

Submit By
Type
Submission
Homework
Lab 2
Language
GNU Make
Submit At
2020-09-25 17:51:22
Judged At
2021-08-19 01:23:26
Judged By
Score
100
Total Time
10ms
Peak Memory
376.0 KiB