/ Test /

Record Detail

Compile Error

In file included from /in/driver/main.c:9:
/in/dlist.h:81:9: error: implicit declaration of function 'mrand48' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        return mrand48()%2;
               ^
1 error generated.
In file included from /in/dlist.c:5:
/in/dlist.h:81:9: error: implicit declaration of function 'mrand48' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        return mrand48()%2;
               ^
/in/dlist.c:71:5: error: variable 'comp' is used uninitialized whenever switch default is taken [-Werror,-Wsometimes-uninitialized]
                                default:
                                ^~~~~~~
/in/dlist.c:78:44: note: uninitialized use occurs here
        qsort(array, dl->size, sizeof(dlistNode), comp);
                                                  ^~~~
/in/dlist.c:56:5: error: variable 'comp' is used uninitialized whenever switch default is taken [-Werror,-Wsometimes-uninitialized]
                                default:
                                ^~~~~~~
/in/dlist.c:78:44: note: uninitialized use occurs here
        qsort(array, dl->size, sizeof(dlistNode), comp);
                                                  ^~~~
/in/dlist.c:40:41: note: initialize the variable 'comp' to silence this warning
        int (*comp)(const void *, const void *);
                                               ^
                                                = NULL
3 errors generated.

Information

Submit By
Type
Submission
Problem
482l7test
Language
C (Clang, with memory check)
Submit At
2018-11-17 19:57:57
Judged At
2018-11-17 19:57:57
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes