Record Detail

Compile Error

/in/driver/main.c:21:5: error: use of undeclared identifier 'dlistValueType'
    dlistValueType valueType = DLIST_UNKOWN;
    ^
/in/driver/main.c:23:9: error: use of undeclared identifier 'valueType'
        valueType = DLIST_INT;
        ^
/in/driver/main.c:23:21: error: use of undeclared identifier 'DLIST_INT'
        valueType = DLIST_INT;
                    ^
/in/driver/main.c:25:9: error: use of undeclared identifier 'valueType'
        valueType = DLIST_STR;
        ^
/in/driver/main.c:25:21: error: use of undeclared identifier 'DLIST_STR'
        valueType = DLIST_STR;
                    ^
/in/driver/main.c:27:9: error: use of undeclared identifier 'valueType'
        valueType = DLIST_DOUBLE;
        ^
/in/driver/main.c:27:21: error: use of undeclared identifier 'DLIST_DOUBLE'
        valueType = DLIST_DOUBLE;
                    ^
/in/driver/main.c:33:5: error: unknown type name 'dlist'; did you mean 'llist'?
    dlist list1 = createDlist(valueType);
    ^~~~~
    llist
/in/correct/dlist.h:8:2: note: 'llist' declared here
}llist;
 ^
/in/driver/main.c:33:19: error: implicit declaration of function 'createDlist' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    dlist list1 = createDlist(valueType);
                  ^
/in/driver/main.c:33:31: error: use of undeclared identifier 'valueType'
    dlist list1 = createDlist(valueType);
                              ^
/in/driver/main.c:34:5: error: unknown type name 'dlist'; did you mean 'llist'?
    dlist list2 = createDlist(valueType);
    ^~~~~
    llist
/in/correct/dlist.h:8:2: note: 'llist' declared here
}llist;
 ^
/in/driver/main.c:34:31: error: use of undeclared identifier 'valueType'
    dlist list2 = createDlist(valueType);
                              ^
/in/driver/main.c:42:13: error: use of undeclared identifier 'dlistValue'
            dlistValue value;
            ^
/in/driver/main.c:43:21: error: use of undeclared identifier 'valueType'
            switch (valueType) {
                    ^
/in/driver/main.c:57:13: error: implicit declaration of function 'dlistAppend' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
            dlistAppend(list1, buffer, value);
            ^
/in/driver/main.c:57:40: error: use of undeclared identifier 'value'
            dlistAppend(list1, buffer, value);
                                       ^
/in/driver/main.c:60:13: error: use of undeclared identifier 'dlistSortMethod'
            dlistSortMethod sortMethod = DLIST_SORT_UNKOWN;
            ^
/in/driver/main.c:62:17: error: use of undeclared identifier 'sortMethod'
                sortMethod = DLIST_SORT_INC;
                ^
/in/driver/main.c:62:30: error: use of undeclared identifier 'DLIST_SORT_INC'
                sortMethod = DLIST_SORT_INC;
                             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Information

Submit By
Type
Submission
Homework
Lab 7: Debugging Lab
Language
C (Clang, with memory check)
Submit At
2018-12-04 11:24:45
Judged At
2018-12-04 11:24:45
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes