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:11:6: error: 'Dlist' is not a class, namespace, or enumeration
bool Dlist::isEmpty() const {
     ^
/in/Compile/dlist.h:10:7: note: 'Dlist' declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:16:6: error: 'Dlist' is not a class, namespace, or enumeration
void Dlist::insertFront(T *op) {
     ^
/in/Compile/dlist.h:10:7: note: 'Dlist' declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:16:25: error: unknown type name 'T'
void Dlist::insertFront(T *op) {
                        ^
/in/dlist_impl.h:24:6: error: 'Dlist' is not a class, namespace, or enumeration
void Dlist::insertBack(T *op) {
     ^
/in/Compile/dlist.h:10:7: note: 'Dlist' declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:24:24: error: unknown type name 'T'
void Dlist::insertBack(T *op) {
                       ^
/in/dlist_impl.h:32:1: error: unknown type name 'T'
T Dlist::removeFront() {
^
/in/dlist_impl.h:32:3: error: 'Dlist' is not a class, namespace, or enumeration
T Dlist::removeFront() {
  ^
/in/Compile/dlist.h:10:7: note: 'Dlist' declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:36:1: error: unknown type name 'T'
T Dlist::removeBack() {
^
/in/dlist_impl.h:36:3: error: 'Dlist' is not a class, namespace, or enumeration
T Dlist::removeBack() {
  ^
/in/Compile/dlist.h:10:7: note: 'Dlist' declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:40:1: error: 'Dlist' is not a class, namespace, or enumeration
Dlist::Dlist() {
^
/in/Compile/dlist.h:10:7: note: 'Dlist' declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:45:1: error: 'Dlist' is not a class, namespace, or enumeration
Dlist::Dlist(const Dlist &l) {
^
/in/Compile/dlist.h:10:7: note: 'Dlist' declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:45:20: error: use of class template 'Dlist' requires template arguments
Dlist::Dlist(const Dlist &l) {
                   ^
/in/Compile/dlist.h:10:7: note: template is declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:50:1: error: use of class template 'Dlist' requires template arguments
Dlist& Dlist::operator=(const Dlist &l) {
^
/in/Compile/dlist.h:10:7: note: template is declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:50:8: error: 'Dlist' is not a class, namespace, or enumeration
Dlist& Dlist::operator=(const Dlist &l) {
       ^
/in/Compile/dlist.h:10:7: note: 'Dlist' declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:50:31: error: use of class template 'Dlist' requires template arguments
Dlist& Dlist::operator=(const Dlist &l) {
                              ^
/in/Compile/dlist.h:10:7: note: template is declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:54:1: error: 'Dlist' is not a class, namespace, or enumeration
Dlist::~Dlist() {
^
/in/Compile/dlist.h:10:7: note: 'Dlist' declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:58:6: error: 'Dlist' is not a class, namespace, or enumeration
void Dlist::removeAll(){}
     ^
/in/Compile/dlist.h:10:7: note: 'Dlist' declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:60:6: error: 'Dlist' is not a class, namespace, or enumeration
void Dlist::copyAll(const Dlist &l) {
     ^
/in/Compile/dlist.h:10:7: note: 'Dlist' declared here
class Dlist
      ^
In file included from /in/Compile/dlist_pre.cpp:2:
In file included from /in/Compile/dlist.h:78:
/in/dlist_impl.h:60:27: error: use of class template 'Dlist' requires template arguments
void Dlist::copyAll(const Dlist &l) {
                          ^
/in/Compile/dlist.h:10:7: note: template is declared here
class Dlist
      ^
19 errors generated.
/in/Compile/Makefile:29: recipe for target 'buildDlistPretest' failed
make: *** [buildDlistPretest] Error 1

Information

Submit By
Type
Submission
Homework
Project Five: List, Stack, and Queue
Language
C++
Submit At
2020-12-13 21:20:50
Judged At
2020-12-16 09:17:39
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes