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:111:20: error: using the result of an assignment as a condition without parentheses [-Werror,-Wparentheses]
    if ( isEmpty() = false){
         ~~~~~~~~~~^~~~~~~
/in/dlist_impl.h:111:20: note: place parentheses around the assignment to silence this warning
    if ( isEmpty() = false){
                   ^
         (                )
/in/dlist_impl.h:111:20: note: use '==' to turn this assignment into an equality comparison
    if ( isEmpty() = false){
                   ^
                   ==
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 22:19:20
Judged At
2022-12-17 22:19:20
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes