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:108:1: error: no return statement in function returning non-void [-Werror=return-type]
 };
 ^
/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:135:12: error: no matching function for call to 'Dlist<int>::copyAll(Dlist<int>::node*&)'
     copyAll(l.first->next);
     ~~~~~~~^~~~~~~~~~~~~~~
/in/DlistImpl.h:131:6: note: candidate: void Dlist<T>::copyAll(const Dlist<T>&) [with T = int]
 void Dlist<T>::copyAll(const Dlist &l){
      ^~~~~~~~
/in/DlistImpl.h:131:6: note:   no known conversion for argument 1 from 'Dlist<int>::node*' to 'const Dlist<int>&'
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-18 19:03:27
Judged At
2023-07-18 19:03:27
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes