Record Detail

Compile Error

In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:65:20: error: equality comparison result unused [-Werror,-Wunused-comparison]
        this->last == nullptr;
        ~~~~~~~~~~~^~~~~~~~~~
/in/dlist_impl.h:81:9: note: in instantiation of member function 'Dlist<int>::removeFront' requested here
        removeFront();
        ^
/in/dlist_impl.h:108:2: note: in instantiation of member function 'Dlist<int>::removeAll' requested here
        removeAll();
        ^
/in/Compile/dlist_pre.cpp:10:16: note: in instantiation of member function 'Dlist<int>::~Dlist' requested here
    Dlist<int> ilist;
               ^
/in/dlist_impl.h:65:20: note: use '=' to turn this equality comparison into an assignment
        this->last == nullptr;
                   ^~
                   =
1 error generated.
/in/Compile/Makefile:29: recipe for target 'buildDlistPretest' failed
make: *** [buildDlistPretest] Error 1

Information

Submit By
Type
Submission
Homework
Project 5
Language
C++
Submit At
2022-12-17 19:48:23
Judged At
2022-12-17 19:48:23
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes