Record Detail

Compile Error

/in/sam.cpp: In instantiation of 'void Stack<T>::print() [with T = int]':
/in/sam.cpp:182:25:   required from here
/in/sam.cpp:38:19: error: cannot convert 'Dlist<int>' to 'Dlist<int>*' in initialization
         Dlist<T> *node = list;
                   ^~~~
/in/sam.cpp:40:31: error: 'class Dlist<int>' has no member named 'op'
             std::cout << list.op << " ";
                          ~~~~~^~
/in/sam.cpp:41:26: error: 'class Dlist<int>' has no member named 'next'
             node = node->next;
                    ~~~~~~^~~~
/in/compile/Makefile:16: recipe for target 'buildStackMachine' failed
make: *** [buildStackMachine] Error 1

Information

Submit By
Type
Submission
Homework
Project Five: List, Stack, and Queue
Language
C++
Submit At
2022-07-28 00:20:23
Judged At
2022-07-28 00:20:23
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes