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 instantiation of 'Dlist<T>& Dlist<T>::operator=(const Dlist<T>&) [with T = int]':
/in/compile/dlist_driver.cpp:213:13:   required from here
/in/DlistImpl.h:107:12: error: lvalue required as unary '&' operand
     return &this;//*
            ^~~~~
/in/DlistImpl.h: In instantiation of 'void Dlist<T>::copyAll(const Dlist<T>&) [with T = int]':
/in/DlistImpl.h:100:12:   required from 'Dlist<T>::Dlist(const Dlist<T>&) [with T = int]'
/in/compile/dlist_driver.cpp:124:27:   required from here
/in/DlistImpl.h:26:32: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    T *value = new T(manynodes->op);
                     ~~~~~~~~~~~^~
/in/DlistImpl.h:30:31: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   T *value = new T(manynodes->op);
                    ~~~~~~~~~~~^~
/in/compile/Makefile:10: recipe for target 'buildDlist' failed
make: *** [buildDlist] Error 1

Information

Submit By
Type
Submission
Homework
Project Five: List, Stack, and Queue
Language
C++
Submit At
2022-07-29 14:03:47
Judged At
2022-07-29 14:03:47
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes