Record Detail

Compile Error

In file included from /in/compile/mylist.h:68:0,
                 from /in/compile/maintest.cpp:5:
/in/mylist_impl.h: In instantiation of 'List<T>& List<T>::operator=(const List<T>&) [with T = int]':
/in/compile/maintest.cpp:238:24:   required from here
/in/mylist_impl.h:42:11: error: 'class List<int>' has no member named 'removeall'; did you mean 'removeAll'?
     this->removeall();
     ~~~~~~^~~~~~~~~
     removeAll
/in/mylist_impl.h: In instantiation of 'List<T>& List<T>::operator=(const List<T>&) [with T = bool]':
/in/compile/maintest.cpp:672:14:   required from here
/in/mylist_impl.h:42:11: error: 'class List<bool>' has no member named 'removeall'; did you mean 'removeAll'?
     this->removeall();
     ~~~~~~^~~~~~~~~
     removeAll
/in/compile/Makefile:10: recipe for target 'mylist' failed
make: *** [mylist] Error 1

Information

Submit By
Type
Submission
Homework
Lab 9
Language
C++
Submit At
2022-07-18 16:30:13
Judged At
2022-07-18 16:30:13
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes