Record Detail

Compile Error

In file included from /in/compile/Dlist.h:80:0,
                 from /in/compile/dlist_driver.cpp:6:
/in/DlistImpl.h: In function 'int case0()':
/in/DlistImpl.h:7:12: error: 'list.Dlist<double>::first' is used uninitialized in this function [-Werror=uninitialized]
     return first == nullptr && last == nullptr;
            ^~~~~
/in/DlistImpl.h:7:32: error: 'list.Dlist<double>::last' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     return first == nullptr && last == nullptr;
                                ^~~~
/in/DlistImpl.h: In function 'int case1()':
/in/DlistImpl.h:7:12: error: 'list.Dlist<double>::first' is used uninitialized in this function [-Werror=uninitialized]
     return first == nullptr && last == nullptr;
            ^~~~~
/in/DlistImpl.h:7:32: error: 'list.Dlist<double>::last' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     return first == nullptr && last == nullptr;
                                ^~~~
cc1plus: all warnings being treated as errors
/in/compile/Makefile:10: recipe for target 'buildDlist' failed
make: *** [buildDlist] Error 1

Information

Submit By
Type
Submission
Homework
Project 5
Language
C++
Submit At
2023-07-26 02:39:00
Judged At
2023-07-26 02:39:00
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes