Record Detail

Compile Error

In file included from /in/call.cpp:7:
/in/dlist_impl.h:11:16: error: redefinition of 'isEmpty'
bool Dlist<T>::isEmpty() const {
               ^
/in/Compile/dlist_ins_impl.h:7:16: note: previous definition is here
bool Dlist<T>::isEmpty() const
               ^
In file included from /in/call.cpp:7:
/in/dlist_impl.h:16:16: error: redefinition of 'insertFront'
void Dlist<T>::insertFront(T *op) {
               ^
/in/Compile/dlist_ins_impl.h:13:16: note: previous definition is here
void Dlist<T>::insertFront(T *op)
               ^
In file included from /in/call.cpp:7:
/in/dlist_impl.h:32:16: error: redefinition of 'insertBack'
void Dlist<T>::insertBack(T *op) {
               ^
/in/Compile/dlist_ins_impl.h:28:16: note: previous definition is here
void Dlist<T>::insertBack(T *op)
               ^
In file included from /in/call.cpp:7:
/in/dlist_impl.h:47:14: error: redefinition of 'removeFront'
T *Dlist<T>::removeFront() {
             ^
/in/Compile/dlist_ins_impl.h:43:14: note: previous definition is here
T *Dlist<T>::removeFront()
             ^
In file included from /in/call.cpp:7:
/in/dlist_impl.h:73:14: error: redefinition of 'removeBack'
T *Dlist<T>::removeBack() {
             ^
/in/Compile/dlist_ins_impl.h:66:14: note: previous definition is here
T *Dlist<T>::removeBack()
             ^
In file included from /in/call.cpp:7:
/in/dlist_impl.h:101:11: error: redefinition of 'Dlist<T>'
Dlist<T>::Dlist() :first(nullptr), last(nullptr){}
          ^
/in/Compile/dlist_ins_impl.h:123:11: note: previous definition is here
Dlist<T>::Dlist(): first(nullptr), last(nullptr)
          ^
In file included from /in/call.cpp:7:
/in/dlist_impl.h:104:11: error: redefinition of 'Dlist<T>'
Dlist<T>::Dlist(const Dlist &l):first(nullptr), last(nullptr) {
          ^
/in/Compile/dlist_ins_impl.h:128:11: note: previous definition is here
Dlist<T>::Dlist(const Dlist &l): first(nullptr), last(nullptr)
          ^
In file included from /in/call.cpp:7:
/in/dlist_impl.h:109:21: error: redefinition of 'operator='
Dlist<T> &Dlist<T>::operator=(const Dlist &l) {
                    ^
/in/Compile/dlist_ins_impl.h:134:21: note: previous definition is here
Dlist<T> &Dlist<T>::operator=(const Dlist &l)
                    ^
In file included from /in/call.cpp:7:
/in/dlist_impl.h:119:16: error: redefinition of 'removeAll'
void Dlist<T>::removeAll() {
               ^
/in/Compile/dlist_ins_impl.h:101:16: note: previous definition is here
void Dlist<T>::removeAll()
               ^
In file included from /in/call.cpp:7:
/in/dlist_impl.h:142:16: error: redefinition of 'copyAll'
void Dlist<T>::copyAll(const Dlist &l) {
               ^
/in/Compile/dlist_ins_impl.h:111:16: note: previous definition is here
void Dlist<T>::copyAll(const Dlist &l)
               ^
In file included from /in/call.cpp:7:
/in/dlist_impl.h:156:11: error: redefinition of '~Dlist<T>'
Dlist<T>::~Dlist() {
          ^
/in/Compile/dlist_ins_impl.h:145:11: note: previous definition is here
Dlist<T>::~Dlist()
          ^
/in/call.cpp:26:19: error: variable length arrays are a C99 feature [-Werror,-Wvla-extension]
    eachCall calls[numberOfCall];
                  ^
12 errors generated.
/in/Compile/Makefile:39: recipe for target 'buildCall' failed
make: *** [buildCall] Error 1

Information

Submit By
Type
Submission
Homework
Project Five: List, Stack, and Queue
Language
C++
Submit At
2018-08-05 08:24:43
Judged At
2018-08-05 08:24:43
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes